GetVolumeInformation patch

Rein Klazes rklazes at xs4all.nl
Tue Jul 13 09:30:15 CDT 2004


Hi,

Possible solution for bug #2356, various problems when a dosdevices/x:
link points to a directory that is also a mount point.

Changelog:
	In GetVolumeInformationW handle the case when there are no
	permissions accessing the device the same way as when no device
	is found.

Rein.
-- 
Rein Klazes
rklazes at xs4all.nl
-------------- next part --------------
--- wine/dlls/kernel/volume.c	2004-05-14 09:32:35.000000000 +0200
+++ mywine/dlls/kernel/volume.c	2004-07-13 16:03:40.000000000 +0200
@@ -765,8 +765,9 @@
     }
     else
     {
-        TRACE( "cannot open device %s: err %ld\n", debugstr_w(device), GetLastError() );
-        if (GetLastError() != ERROR_FILE_NOT_FOUND) return FALSE;
+        DWORD lerr =  GetLastError();
+        TRACE( "cannot open device %s: err %ld\n", debugstr_w(device), lerr );
+        if (lerr != ERROR_FILE_NOT_FOUND && lerr != ERROR_ACCESS_DENIED) return FALSE;
     }
 
     /* we couldn't open the device, fallback to default strategy */


More information about the wine-patches mailing list