kernel32: Acquire the loader lock before shutting down the process.

This commit is contained in:
Alexandre Julliard 2013-07-08 14:23:03 +02:00
parent f37027a947
commit c01574d426
1 changed files with 2 additions and 0 deletions

View File

@ -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();