- Don't overwrite the real unload status with the return value of RtlLeaveCriticalSection

svn path=/trunk/; revision=52521
This commit is contained in:
Cameron Gutman 2011-07-03 20:10:02 +00:00
parent df556f104f
commit 4e60d722c9

View file

@ -2301,7 +2301,7 @@ LdrUnloadDll(IN PVOID BaseAddress)
Quickie:
/* Decrease unload count */
LdrpActiveUnloadCount--;
if (!LdrpInLdrInit) Status = RtlLeaveCriticalSection(Peb->LoaderLock);
if (!LdrpInLdrInit) RtlLeaveCriticalSection(Peb->LoaderLock);
/* FIXME: Rundown the Hotpatch data, if present */