Only stop writing a volume label if we found a non writable fat
partition.
This commit is contained in:
parent
3b59fa8fce
commit
1973138190
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue