[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

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))