[KERNEL32] In GetLogicalDrives(), if NtQueryInformationProcess() call succeed, but...
authorPierre Schweitzer <pierre@reactos.org>
Sun, 29 Oct 2017 13:48:41 +0000 (14:48 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 29 Oct 2017 13:49:59 +0000 (14:49 +0100)
Patch by Alex Ionescu

dll/win32/kernel32/client/file/disk.c

index 041f4b1..6d13e64 100644 (file)
@@ -127,6 +127,11 @@ GetLogicalDrives(VOID)
         return 0;
     }
 
+    if (ProcessDeviceMapInfo.Query.DriveMap == 0)
+    {
+        SetLastError(ERROR_SUCCESS);
+    }
+
     return ProcessDeviceMapInfo.Query.DriveMap;
 }