Fixed last error code check in GetVolumeInformationW, opening a
non-existent device returns ERROR_FILE_NOT_FOUND now.
This commit is contained in:
parent
72f87b8c06
commit
cba2fcaf61
|
@ -766,7 +766,7 @@ BOOL WINAPI GetVolumeInformationW( LPCWSTR root, LPWSTR label, DWORD label_len,
|
|||
else
|
||||
{
|
||||
TRACE( "cannot open device %s: err %ld\n", debugstr_w(device), GetLastError() );
|
||||
if (GetLastError() != ERROR_ACCESS_DENIED) return FALSE;
|
||||
if (GetLastError() != ERROR_FILE_NOT_FOUND) return FALSE;
|
||||
}
|
||||
|
||||
/* we couldn't open the device, fallback to default strategy */
|
||||
|
|
Loading…
Reference in New Issue