From 9c48edb58c478cf6ab8df0b6bf4b7cd3edab7983 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Sun, 22 Jul 2018 17:17:36 +0200 Subject: [PATCH] [LDR] Release the loader lock the same way it was acquired --- dll/ntdll/ldr/ldrutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/ntdll/ldr/ldrutils.c b/dll/ntdll/ldr/ldrutils.c index 2542a9a3243..5459d4a5d2d 100644 --- a/dll/ntdll/ldr/ldrutils.c +++ b/dll/ntdll/ldr/ldrutils.c @@ -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))