In FILEDLG_ScanDir do not try to set the current directory to a path

that is empty.
oldstable
Rein Klazes 2004-06-02 21:33:32 +00:00 committed by Alexandre Julliard
parent 190db273de
commit 0d6adce37a
1 changed files with 1 additions and 1 deletions

View File

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