[PATCH] kernelbase: Fix status check in GetExitCodeProcess().

Paul Gofman pgofman at codeweavers.com
Wed Oct 14 03:20:08 CDT 2020


Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
---
 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 e7998c00f28..1ec0d478bea 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 );
 }
 
-- 
2.26.2




More information about the wine-devel mailing list