Alexandre Julliard : kernel32: Acquire the loader lock before shutting down the process.
Module: wine Branch: master Commit: c01574d426888cac336483c9420f066d46a7f1dc URL: http://source.winehq.org/git/wine.git/?a=commit;h=c01574d426888cac336483c942... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Jul 8 14:23:03 2013 +0200 kernel32: Acquire the loader lock before shutting down the process. --- dlls/kernel32/process.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c index d07065c..6d2f80d 100644 --- a/dlls/kernel32/process.c +++ b/dlls/kernel32/process.c @@ -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();
participants (1)
-
Alexandre Julliard