Commit 976fa1b4 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

kernelbase: Fix status check in GetExitCodeProcess().

parent bff6bc6a
......@@ -746,7 +746,7 @@ BOOL WINAPI DECLSPEC_HOTPATCH GetExitCodeProcess( HANDLE process, LPDWORD exit_c
PROCESS_BASIC_INFORMATION pbi;
status = NtQueryInformationProcess( process, ProcessBasicInformation, &pbi, sizeof(pbi), NULL );
if (status && exit_code) *exit_code = pbi.ExitStatus;
if (!status && exit_code) *exit_code = pbi.ExitStatus;
return set_ntstatus( status );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment