https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9c48edb58c478cf6ab8df0...
commit 9c48edb58c478cf6ab8df0b6bf4b7cd3edab7983 Author: Mark Jansen mark.jansen@reactos.org AuthorDate: Sun Jul 22 17:17:36 2018 +0200 Commit: Mark Jansen mark.jansen@reactos.org CommitDate: Sun Jul 22 17:17:36 2018 +0200
[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 2542a9a324..5459d4a5d2 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))