From 0d6adce37a73514546d8bab230f93590684d9eed Mon Sep 17 00:00:00 2001 From: Rein Klazes Date: Wed, 2 Jun 2004 21:33:32 +0000 Subject: [PATCH] In FILEDLG_ScanDir do not try to set the current directory to a path that is empty. --- dlls/commdlg/filedlg16.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/commdlg/filedlg16.c b/dlls/commdlg/filedlg16.c index 4c3bbdd979a..0227b8f11b9 100644 --- a/dlls/commdlg/filedlg16.c +++ b/dlls/commdlg/filedlg16.c @@ -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)); -- 2.11.4.GIT