Commit 932533ca authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

In GetVolumeInformationW handle the case when there are no permissions

accessing the device the same way as when no device is found.
parent 6a358c40
...@@ -763,11 +763,7 @@ BOOL WINAPI GetVolumeInformationW( LPCWSTR root, LPWSTR label, DWORD label_len, ...@@ -763,11 +763,7 @@ BOOL WINAPI GetVolumeInformationW( LPCWSTR root, LPWSTR label, DWORD label_len,
if (serial) *serial = VOLUME_GetSuperblockSerial( type, superblock ); if (serial) *serial = VOLUME_GetSuperblockSerial( type, superblock );
goto fill_fs_info; goto fill_fs_info;
} }
else else TRACE( "cannot open device %s: err %ld\n", debugstr_w(device), GetLastError() );
{
TRACE( "cannot open device %s: err %ld\n", debugstr_w(device), GetLastError() );
if (GetLastError() != ERROR_FILE_NOT_FOUND) return FALSE;
}
/* we couldn't open the device, fallback to default strategy */ /* we couldn't open the device, fallback to default strategy */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment