[NTOSKRNL] When looping again in ObpLookupEntryDirectory, properly init root entry
authorPierre Schweitzer <pierre@reactos.org>
Tue, 25 Jun 2019 20:09:54 +0000 (22:09 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 30 Jun 2019 21:07:54 +0000 (23:07 +0200)
This fixes looking in global directory for DOS drives that are globally mounted
(such as C: drive)

CORE-16114

ntoskrnl/ob/obdir.c

index 83d05d4..1c7b457 100644 (file)
@@ -214,11 +214,11 @@ ObpLookupEntryDirectory(IN POBJECT_DIRECTORY Directory,
     Context->HashValue = HashValue;
     Context->HashIndex = (USHORT)HashIndex;
 
     Context->HashValue = HashValue;
     Context->HashIndex = (USHORT)HashIndex;
 
+DoItAgain:
     /* Get the root entry and set it as our lookup bucket */
     AllocatedEntry = &Directory->HashBuckets[HashIndex];
     LookupBucket = AllocatedEntry;
 
     /* Get the root entry and set it as our lookup bucket */
     AllocatedEntry = &Directory->HashBuckets[HashIndex];
     LookupBucket = AllocatedEntry;
 
-DoItAgain:
     /* Check if the directory is already locked */
     if (!Context->DirectoryLocked)
     {
     /* Check if the directory is already locked */
     if (!Context->DirectoryLocked)
     {