[PATCH] GetDiskFreeSpaceEx specificity

Gerard Patel gerard.patel at nerim.net
Sun Oct 7 14:43:08 CDT 2001


C:,D:,etc syntax work for GetDiskFreeSpaceEx (although not always for
GetDiskFreeSpace)

ChangeLog:

	* files/drive.c
               GetDiskFreeSpaceEx should accept an input like "C:"
-------------- next part --------------
Index: files/drive.c
===================================================================
RCS file: /home/wine/wine/files/drive.c,v
retrieving revision 1.60
diff -u -r1.60 drive.c
--- files/drive.c	2001/10/02 17:49:20	1.60
+++ files/drive.c	2001/10/07 16:12:38
@@ -1110,8 +1110,8 @@
 
     if (!root) drive = DRIVE_GetCurrentDrive();
     else
-    {
-        if ((root[1]) && ((root[1] != ':') || (root[2] != '\\')))
+    { /* C: always works for GetDiskFreeSpaceEx */
+        if ((root[1]) && ((root[1] != ':') || (root[2] && root[2] != '\\')))
         {
             FIXME("there are valid root names which are not supported yet\n");
 	    /* ..like UNC names, for instance. */
-------------- next part --------------



More information about the wine-patches mailing list