Author: hpoussin
Date: Sun Jul 3 21:33:42 2011
New Revision: 52523
URL:
http://svn.reactos.org/svn/reactos?rev=52523&view=rev
Log:
[LDR] Assume that lock is held only if lock method succeeded
Modified:
trunk/reactos/dll/ntdll/ldr/ldrutils.c
Modified: trunk/reactos/dll/ntdll/ldr/ldrutils.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/ntdll/ldr/ldrutils.c?r…
==============================================================================
--- trunk/reactos/dll/ntdll/ldr/ldrutils.c [iso-8859-1] (original)
+++ trunk/reactos/dll/ntdll/ldr/ldrutils.c [iso-8859-1] Sun Jul 3 21:33:42 2011
@@ -2365,9 +2365,8 @@
{
/* Acquire the lock */
Status = LdrLockLoaderLock(0, NULL, &Cookie);
+ if (!NT_SUCCESS(Status)) goto quickie;
Locked = TRUE;
-
- if (!NT_SUCCESS(Status)) goto quickie;
}
/* Get this module's data table entry */