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:
parent
926a86323d
commit
1b7e736334
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue