(msvcrt) _getdcwd fix

Gunnar Dalsnes hardon at online.no
Thu Feb 17 04:31:42 CST 2005


When getting current directory on a drive different from the working 
drive, _getdcwd incorrectly passed "X:\" (X = any drive) as path to 
GetFullPathName. "X:" (without the backslash) is the correct thing to use.
-------------- next part --------------
Index: dlls/msvcrt/dir.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/dir.c,v
retrieving revision 1.30
diff -u -r1.30 dir.c
--- dlls/msvcrt/dir.c	30 Nov 2004 21:38:59 -0000	1.30
+++ dlls/msvcrt/dir.c	17 Feb 2005 10:21:45 -0000
@@ -508,7 +508,7 @@
   else
   {
     char dir[MAX_PATH];
-    char drivespec[4] = {'A', ':', '\\', 0};
+    char drivespec[4] = {'A', ':', 0};
     int dir_len;
 
     drivespec[0] += drive - 1;


More information about the wine-patches mailing list