[NTDLL]
authorAleksey Bragin <aleksey@reactos.org>
Thu, 22 Sep 2011 08:45:05 +0000 (08:45 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Thu, 22 Sep 2011 08:45:05 +0000 (08:45 +0000)
- Remove useless code. Spotted by Pierre.

svn path=/trunk/; revision=53802

reactos/dll/ntdll/ldr/ldrapi.c

index f618582..f2bf1a6 100644 (file)
@@ -1374,18 +1374,6 @@ LdrUnloadDll(IN PVOID BaseAddress)
     NextEntry = LdrpUnloadHead.Flink;
     while (NextEntry != &LdrpUnloadHead)
     {
-        /* If we have an active entry */
-        if (CurrentEntry)
-        {
-            /* Remove it */
-            RemoveEntryList(&CurrentEntry->InLoadOrderLinks);
-            CurrentEntry = NULL;
-
-            /* Reset list pointers */
-            NextEntry = LdrpUnloadHead.Flink;
-            if (NextEntry == &LdrpUnloadHead) break;
-        }
-
         /* Get the current entry */
         LdrEntry = CONTAINING_RECORD(NextEntry, LDR_DATA_TABLE_ENTRY, HashLinks);