kernel32: Acquire the loader lock before shutting down the process.
This commit is contained in:
parent
f37027a947
commit
c01574d426
|
@ -2630,6 +2630,8 @@ __ASM_STDCALL_FUNC( ExitProcess, 4, /* Shrinker depend on this particular ExitPr
|
|||
|
||||
void WINAPI process_ExitProcess( DWORD status )
|
||||
{
|
||||
ULONG magic;
|
||||
LdrLockLoaderLock( 0, 0, &magic );
|
||||
RtlAcquirePebLock();
|
||||
NtTerminateProcess(0, status);
|
||||
LdrShutdownProcess();
|
||||
|
|
Loading…
Reference in New Issue