GetDiskFreeSpace
Aric Stewart
aric at codeweavers.com
Thu Jan 24 13:51:06 CST 2002
changelog: GetDiskFreeSpace needs to set the Last Error on failure.
-aric
-------------- next part --------------
Index: files/drive.c
===================================================================
RCS file: /home/wine/wine/files/drive.c,v
retrieving revision 1.64
diff -u -u -r1.64 drive.c
--- files/drive.c 2002/01/13 01:44:00 1.64
+++ files/drive.c 2002/01/24 17:52:41
@@ -1290,10 +1290,16 @@
if (path[0] == '\\')
path++;
if (strlen(path)) /* oops, we are in a subdir */
+ {
+ SetLastError(ERROR_INVALID_NAME);
return FALSE;
}
+ }
else
+ {
+ SetLastError(ERROR_INVALID_NAME);
return FALSE;
+ }
if (!DRIVE_GetFreeSpace(drive, &size, &available)) return FALSE;
More information about the wine-patches
mailing list