[KERNEL32] In GetLogicalDrives(), if NtQueryInformationProcess() call succeed, but return drive map is empty, make sure returned error is success.

Patch by Alex Ionescu
This commit is contained in:
Pierre Schweitzer 2017-10-29 14:48:41 +01:00
parent b3b2a23f05
commit a80f5f53e7

View file

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