Simplify create_win32_process
This commit is contained in:
parent
341a4d50ea
commit
7874d179da
|
@ -29556,11 +29556,7 @@ static bool create_win32_process(char* cmd)
|
||||||
|
|
||||||
if (!CreateProcess(NULL, cmd, NULL, NULL, FALSE, CREATE_NO_WINDOW,
|
if (!CreateProcess(NULL, cmd, NULL, NULL, FALSE, CREATE_NO_WINDOW,
|
||||||
NULL, NULL, &si, &pi))
|
NULL, NULL, &si, &pi))
|
||||||
{
|
|
||||||
pi_set = false;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
pi_set = true;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29610,7 +29606,10 @@ static bool accessibility_speak_windows(
|
||||||
if (!res)
|
if (!res)
|
||||||
{
|
{
|
||||||
RARCH_LOG("Create subprocess failed. Error: %d\n", GetLastError());
|
RARCH_LOG("Create subprocess failed. Error: %d\n", GetLastError());
|
||||||
|
pi_set = false;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
pi_set = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue