From cba2fcaf6118325d4ecb10fc51a18c31b1ad5112 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sat, 1 May 2004 03:05:36 +0000 Subject: [PATCH] Fixed last error code check in GetVolumeInformationW, opening a non-existent device returns ERROR_FILE_NOT_FOUND now. --- 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 227816992d..b32ad474f4 100644 --- a/dlls/kernel/volume.c +++ b/dlls/kernel/volume.c @@ -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 */ -- 2.32.0.93.g670b81a890