comdlg32: Open should try to browse directory first.

This commit is contained in:
Gabriele Moabiti 2010-02-15 14:48:11 +01:00 committed by Alexandre Julliard
parent 4f6d085073
commit c65a3e81f7
1 changed files with 4 additions and 4 deletions

View File

@ -1989,15 +1989,15 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
TRACE("hwnd=%p\n", hwnd);
/* try to browse the selected item */
if(BrowseSelectedFolder(hwnd))
return FALSE;
/* get the files from the edit control */
nFileCount = FILEDLG95_FILENAME_GetFileNames(hwnd, &lpstrFileList, &sizeUsed);
/* try if the user selected a folder in the shellview */
if(nFileCount == 0)
{
BrowseSelectedFolder(hwnd);
return FALSE;
}
if(nFileCount > 1)
{