Skip to content

Commit

Permalink
Windows: Fix wrongly shown debug message 'GetExitCodeProcess failed'
Browse files Browse the repository at this point in the history
  • Loading branch information
ntrel committed Oct 13, 2011
1 parent c2ce240 commit e9021f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
}

if (GetExitCodeProcess(piProcInfo.hProcess, &gw_spawn->dwExitCode) != 0)
if (!GetExitCodeProcess(piProcInfo.hProcess, &gw_spawn->dwExitCode))
{
gchar *msg = g_win32_error_message(GetLastError());
geany_debug("GetExitCodeProcess failed: %s", msg);
Expand Down

2 comments on commit e9021f2

@eht16
Copy link
Member

@eht16 eht16 commented on e9021f2 Oct 13, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops. This most probably explains the "Success" error messages on Windows. Sorry guys :).
Good catch, Nick.

@codebrainz
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's awesome!

error: everything is OK, I swear

Please sign in to comment.