Windows: Fix wrongly shown debug message 'GetExitCodeProcess failed'
This commit is contained in:
parent
c2ce2403f4
commit
e9021f2174
@ -1105,7 +1105,7 @@ static gboolean CreateChildProcess(geany_win32_spawn *gw_spawn, TCHAR *szCmdline
|
|||||||
TerminateProcess(piProcInfo.hProcess, WAIT_TIMEOUT); /* NOTE: This will not kill grandkids. */
|
TerminateProcess(piProcInfo.hProcess, WAIT_TIMEOUT); /* NOTE: This will not kill grandkids. */
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GetExitCodeProcess(piProcInfo.hProcess, &gw_spawn->dwExitCode) != 0)
|
if (!GetExitCodeProcess(piProcInfo.hProcess, &gw_spawn->dwExitCode))
|
||||||
{
|
{
|
||||||
gchar *msg = g_win32_error_message(GetLastError());
|
gchar *msg = g_win32_error_message(GetLastError());
|
||||||
geany_debug("GetExitCodeProcess failed: %s", msg);
|
geany_debug("GetExitCodeProcess failed: %s", msg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user