GetDiskFreeSpace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



changelog: GetDiskFreeSpace needs to set the Last Error on failure.

-aric
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;
 

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux