Commit 1b7e7363 authored by Gunnar Dalsnes's avatar Gunnar Dalsnes Committed by Alexandre Julliard

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.
parent 926a8632
...@@ -508,7 +508,7 @@ char* _getdcwd(int drive, char * buf, int size) ...@@ -508,7 +508,7 @@ char* _getdcwd(int drive, char * buf, int size)
else else
{ {
char dir[MAX_PATH]; char dir[MAX_PATH];
char drivespec[4] = {'A', ':', '\\', 0}; char drivespec[4] = {'A', ':', 0};
int dir_len; int dir_len;
drivespec[0] += drive - 1; drivespec[0] += drive - 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment