mirror of
https://github.com/reactos/reactos.git
synced 2025-05-10 20:27:45 +00:00
[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:
parent
b3b2a23f05
commit
a80f5f53e7
1 changed files with 5 additions and 0 deletions
|
@ -127,6 +127,11 @@ GetLogicalDrives(VOID)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ProcessDeviceMapInfo.Query.DriveMap == 0)
|
||||||
|
{
|
||||||
|
SetLastError(ERROR_SUCCESS);
|
||||||
|
}
|
||||||
|
|
||||||
return ProcessDeviceMapInfo.Query.DriveMap;
|
return ProcessDeviceMapInfo.Query.DriveMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue