[KERNEL32] set ExitCode when terminating threads in ExitProcess as well

svn path=/trunk/; revision=72654
This commit is contained in:
Christoph von Wittich 2016-09-11 13:22:33 +00:00
parent 63df102547
commit db1b0cb26d

View file

@ -1542,7 +1542,7 @@ ExitProcess(IN UINT uExitCode)
RtlAcquirePebLock(); RtlAcquirePebLock();
/* Kill all the threads */ /* Kill all the threads */
NtTerminateProcess(NULL, 0); NtTerminateProcess(NULL, uExitCode);
/* Unload all DLLs */ /* Unload all DLLs */
LdrShutdownProcess(); LdrShutdownProcess();