DOSFS_GetPathDrive patch

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

 



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

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)
         {

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

  Powered by Linux