[NTOS]: Use the correct access rights for ZwOpenDirectoryObject call.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Thu, 18 May 2017 23:46:44 +0000 (23:46 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Thu, 18 May 2017 23:46:44 +0000 (23:46 +0000)
svn path=/trunk/; revision=74585

reactos/ntoskrnl/fstub/disksup.c

index 09e55c3..62986ae 100644 (file)
@@ -173,7 +173,7 @@ xHalpGetRDiskCount(VOID)
         NULL);
 
     Status = ZwOpenDirectoryObject (&DirectoryHandle,
-        SYMBOLIC_LINK_ALL_ACCESS,
+        DIRECTORY_ALL_ACCESS,
         &ObjectAttributes);
     if (!NT_SUCCESS(Status))
     {