[NTOSKRNL] When looping again in ObpLookupEntryDirectory, properly init root entry
[reactos.git] / 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;
 
+DoItAgain:
     /* 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)
     {