You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GetDeviceNumberFromVolumeHandle return 0 when it fail. However I have a case where my storageDeviceNumber.DeviceNumber is also 0.
This made other functions using GetDeviceNumberFromVolumeHandle to also fail:
For example EjectDriveLetter at line 353 check for the deviceNumber and so fail even if it's a good device number which is equal to 0
FIX all function using this for example in EjectDriveLetter:
ULONG deviceNumber;
BOOL result = GetDeviceNumberFromVolumeHandle(volumeHandle, &deviceNumber);
if (!result) {
MountUtilsLog("Couldn't get device number from volume handle");
CloseHandle(volumeHandle);
return MOUNTUTILS_ERROR_GENERAL;
}
The text was updated successfully, but these errors were encountered:
GetDeviceNumberFromVolumeHandle
return 0 when it fail. However I have a case where mystorageDeviceNumber.DeviceNumber
is also 0.This made other functions using
GetDeviceNumberFromVolumeHandle
to also fail:For example
EjectDriveLetter
at line353
check for the deviceNumber and so fail even if it's a good device number which is equal to 0Maybe change function to:
FIX all function using this for example in
EjectDriveLetter
:The text was updated successfully, but these errors were encountered: