Commit 19731381 authored by Paul van Schayck's avatar Paul van Schayck Committed by Alexandre Julliard

Only stop writing a volume label if we found a non writable fat

partition.
parent 3b59fa8f
......@@ -959,7 +959,7 @@ BOOL WINAPI SetVolumeLabelW( LPCWSTR root, LPCWSTR label )
else
{
TRACE( "cannot open device %s: err %ld\n", debugstr_w(device), GetLastError() );
if (GetLastError() != ERROR_ACCESS_DENIED) return FALSE;
if (GetLastError() == ERROR_ACCESS_DENIED) 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