https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4fd223729b84740e558a9bbc9c0727749959f8a2

commit 4fd223729b84740e558a9bbc9c0727749959f8a2
Author:     Pierre Schweitzer <pie...@reactos.org>
AuthorDate: Tue Jun 25 22:09:54 2019 +0200
Commit:     Pierre Schweitzer <pie...@reactos.org>
CommitDate: Sun Jun 30 23:07:54 2019 +0200

    [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
---
 ntoskrnl/ob/obdir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ntoskrnl/ob/obdir.c b/ntoskrnl/ob/obdir.c
index 83d05d4beb9..1c7b457c726 100644
--- a/ntoskrnl/ob/obdir.c
+++ b/ntoskrnl/ob/obdir.c
@@ -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)
     {

Reply via email to