In GetVolumeInformationW handle the case when there are no permissions

accessing the device the same way as when no device is found.
This commit is contained in:
Rein Klazes 2004-07-13 23:33:47 +00:00 committed by Alexandre Julliard
parent 6a358c4090
commit 932533ca09
1 changed files with 1 additions and 5 deletions

View File

@ -763,11 +763,7 @@ BOOL WINAPI GetVolumeInformationW( LPCWSTR root, LPWSTR label, DWORD label_len,
if (serial) *serial = VOLUME_GetSuperblockSerial( type, superblock );
goto fill_fs_info;
}
else
{
TRACE( "cannot open device %s: err %ld\n", debugstr_w(device), GetLastError() );
if (GetLastError() != ERROR_FILE_NOT_FOUND) return FALSE;
}
else TRACE( "cannot open device %s: err %ld\n", debugstr_w(device), GetLastError() );
/* we couldn't open the device, fallback to default strategy */