comdlg32: Open should try to browse directory first.
This commit is contained in:
parent
4f6d085073
commit
c65a3e81f7
@ -1989,15 +1989,15 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
|
|||||||
|
|
||||||
TRACE("hwnd=%p\n", hwnd);
|
TRACE("hwnd=%p\n", hwnd);
|
||||||
|
|
||||||
|
/* try to browse the selected item */
|
||||||
|
if(BrowseSelectedFolder(hwnd))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
/* get the files from the edit control */
|
/* get the files from the edit control */
|
||||||
nFileCount = FILEDLG95_FILENAME_GetFileNames(hwnd, &lpstrFileList, &sizeUsed);
|
nFileCount = FILEDLG95_FILENAME_GetFileNames(hwnd, &lpstrFileList, &sizeUsed);
|
||||||
|
|
||||||
/* try if the user selected a folder in the shellview */
|
|
||||||
if(nFileCount == 0)
|
if(nFileCount == 0)
|
||||||
{
|
|
||||||
BrowseSelectedFolder(hwnd);
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
|
||||||
|
|
||||||
if(nFileCount > 1)
|
if(nFileCount > 1)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user