[NTDLL:LDR]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 25 Oct 2015 13:07:28 +0000 (13:07 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 25 Oct 2015 13:07:28 +0000 (13:07 +0000)
- Take the right exit path from LdrpMapDll when an illegal dll relocation is encountered. CID 1237071

svn path=/trunk/; revision=69695

reactos/dll/ntdll/ldr/ldrutils.c

index eab10c0..44dde71 100644 (file)
@@ -1421,7 +1421,7 @@ SkipCheck:
 
                 /* Don't do relocation */
                 Status = STATUS_CONFLICTING_ADDRESSES;
-                goto NoRelocNeeded;
+                goto FailRelocate;
             }
 
             /* Change the protection to prepare for relocation */
@@ -1459,7 +1459,7 @@ SkipCheck:
                     Status = LdrpSetProtection(ViewBase, TRUE);
                 }
             }
-//FailRelocate:
+FailRelocate:
             /* Handle any kind of failure */
             if (!NT_SUCCESS(Status))
             {