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.
This commit is contained in:
Gunnar Dalsnes 2005-02-18 12:51:00 +00:00 committed by Alexandre Julliard
parent 926a86323d
commit 1b7e736334
1 changed files with 1 additions and 1 deletions

View File

@ -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;