Commit cba2fcaf authored by Alexandre Julliard's avatar Alexandre Julliard

Fixed last error code check in GetVolumeInformationW, opening a

non-existent device returns ERROR_FILE_NOT_FOUND now.
parent 72f87b8c
......@@ -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 */
......
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