Skip to content

Commit db1b0cb

Browse files
committed
[KERNEL32] set ExitCode when terminating threads in ExitProcess as well
svn path=/trunk/; revision=72654
1 parent 63df102 commit db1b0cb

File tree

1 file changed

+1
-1
lines changed
  • reactos/dll/win32/kernel32/client

1 file changed

+1
-1
lines changed

reactos/dll/win32/kernel32/client/proc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1542,7 +1542,7 @@ ExitProcess(IN UINT uExitCode)
15421542
RtlAcquirePebLock();
15431543

15441544
/* Kill all the threads */
1545-
NtTerminateProcess(NULL, 0);
1545+
NtTerminateProcess(NULL, uExitCode);
15461546

15471547
/* Unload all DLLs */
15481548
LdrShutdownProcess();

0 commit comments

Comments
 (0)