From 1b7e73633495ee2ba30940364a02e6d16d1dc755 Mon Sep 17 00:00:00 2001 From: Gunnar Dalsnes Date: Fri, 18 Feb 2005 12:51:00 +0000 Subject: [PATCH] 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. --- dlls/msvcrt/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msvcrt/dir.c b/dlls/msvcrt/dir.c index d8001c64a07..6355066169c 100644 --- a/dlls/msvcrt/dir.c +++ b/dlls/msvcrt/dir.c @@ -508,7 +508,7 @@ char* _getdcwd(int drive, char * buf, int size) else { char dir[MAX_PATH]; - char drivespec[4] = {'A', ':', '\\', 0}; + char drivespec[4] = {'A', ':', 0}; int dir_len; drivespec[0] += drive - 1;