From 197313819009168931fe8dd74922da0db1ccfe2e Mon Sep 17 00:00:00 2001 From: Paul van Schayck Date: Tue, 15 Feb 2005 15:47:58 +0000 Subject: [PATCH] Only stop writing a volume label if we found a non writable fat partition. --- dlls/kernel/volume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/kernel/volume.c b/dlls/kernel/volume.c index 50e0d7dde10..5dc0d8be3df 100644 --- a/dlls/kernel/volume.c +++ b/dlls/kernel/volume.c @@ -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 */ -- 2.11.4.GIT