In FILEDLG_ScanDir do not try to set the current directory to a path
that is empty.
This commit is contained in:
parent
190db273de
commit
0d6adce37a
|
@ -300,7 +300,7 @@ static BOOL FILEDLG_ScanDir(HWND hWnd, LPWSTR newPath)
|
|||
HCURSOR hCursorWait, oldCursor;
|
||||
|
||||
TRACE("Trying to change to %s\n", debugstr_w(newPath));
|
||||
if ( !SetCurrentDirectoryW( newPath ))
|
||||
if ( newPath[0] && !SetCurrentDirectoryW( newPath ))
|
||||
return FALSE;
|
||||
lstrcpynW(buffer, newPath, sizeof(buffer)/sizeof(WCHAR));
|
||||
|
||||
|
|
Loading…
Reference in New Issue