[NTOSKRNL] When looping again in ObpLookupEntryDirectory, properly init root entry

This fixes looking in global directory for DOS drives that are globally mounted
(such as C: drive)

CORE-16114
This commit is contained in:
Pierre Schweitzer 2019-06-25 22:09:54 +02:00
parent 222ace7c6c
commit 4fd223729b

View 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)
{