DOSFS_GetPathDrive patch

Duane Clark dclark at akamail.com
Sun Jun 30 20:43:54 CDT 2002


Xilinx likes to mix Unix and DOS path formats, probably as a side effect 
of it being written on Unix and ported to Windows.

In particular, it calls GetFileAttributes with a path like:
\c\Xilinx\bin\lib\tcl8.3\init.tcl
which fails in DOSFS_GetPathDrive.

Changelog: Check for absolute Unix path in DOSFS_GetPathDrive

-------------- next part --------------
Index: files/dos_fs.c
===================================================================
RCS file: /home/wine/wine/files/dos_fs.c,v
retrieving revision 1.112
diff -u -r1.112 dos_fs.c
--- files/dos_fs.c	21 Jun 2002 19:00:13 -0000	1.112
+++ files/dos_fs.c	30 Jun 2002 19:20:07 -0000
@@ -835,7 +835,7 @@
         drive = FILE_toupper(*p) - 'A';
         *name += 2;
     }
-    else if (*p == '/') /* Absolute Unix path? */
+    else if (*p == '/' || *p == '\\') /* Absolute Unix path? */
     {
         if ((drive = DRIVE_FindDriveRoot( name )) == -1)
         {


More information about the wine-patches mailing list