Fixed last error code check in GetVolumeInformationW, opening a

non-existent device returns ERROR_FILE_NOT_FOUND now.
This commit is contained in:
Alexandre Julliard 2004-05-01 03:05:36 +00:00
parent 72f87b8c06
commit cba2fcaf61
1 changed files with 1 additions and 1 deletions

View File

@ -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 */