Paul Gofman : kernelbase: Fix status check in GetExitCodeProcess().
Alexandre Julliard
julliard at winehq.org
Wed Oct 14 15:37:20 CDT 2020
Module: wine
Branch: master
Commit: 976fa1b4919ded326c7322a623120881a584d8aa
URL: https://source.winehq.org/git/wine.git/?a=commit;h=976fa1b4919ded326c7322a623120881a584d8aa
Author: Paul Gofman <pgofman at codeweavers.com>
Date: Wed Oct 14 11:20:08 2020 +0300
kernelbase: Fix status check in GetExitCodeProcess().
Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/kernelbase/process.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/kernelbase/process.c b/dlls/kernelbase/process.c
index 0f707f82d1..57f0721f39 100644
--- a/dlls/kernelbase/process.c
+++ b/dlls/kernelbase/process.c
@@ -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 );
}
More information about the wine-cvs
mailing list