[LDR] Release the loader lock the same way it was acquired

This commit is contained in:
Mark Jansen 2018-07-22 17:17:36 +02:00
parent 91a5ee334d
commit 9c48edb58c
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -2626,7 +2626,7 @@ LdrpLoadDll(IN BOOLEAN Redirected,
Quickie:
/* Release the lock */
if (!InInit) RtlLeaveCriticalSection(Peb->LoaderLock);
if (!InInit) RtlLeaveCriticalSection(&LdrpLoaderLock);
/* Check for success */
if (NT_SUCCESS(Status))