Commit 0d6adce3 authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

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

that is empty.
parent 190db273
......@@ -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));
......
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