https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a80f5f53e747b91a65d94…
commit a80f5f53e747b91a65d945105799bb3a85c68a89
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sun Oct 29 14:48:41 2017 +0100
[KERNEL32] In GetLogicalDrives(), if NtQueryInformationProcess() call succeed, but
return drive map is empty, make sure returned error is success.
Patch by Alex Ionescu
---
dll/win32/kernel32/client/file/disk.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dll/win32/kernel32/client/file/disk.c
b/dll/win32/kernel32/client/file/disk.c
index 041f4b197b..6d13e64acb 100644
--- a/dll/win32/kernel32/client/file/disk.c
+++ b/dll/win32/kernel32/client/file/disk.c
@@ -127,6 +127,11 @@ GetLogicalDrives(VOID)
return 0;
}
+ if (ProcessDeviceMapInfo.Query.DriveMap == 0)
+ {
+ SetLastError(ERROR_SUCCESS);
+ }
+
return ProcessDeviceMapInfo.Query.DriveMap;
}