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

partition.
This commit is contained in:
Paul van Schayck 2005-02-15 15:47:58 +00:00 committed by Alexandre Julliard
parent 3b59fa8fce
commit 1973138190
1 changed files with 1 additions and 1 deletions

View File

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