Open should try to browse directory first
Gabriele Moabiti
gabmoa at yahoo.it
Mon Feb 15 07:48:11 CST 2010
---
dlls/comdlg32/filedlg.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/comdlg32/filedlg.c b/dlls/comdlg32/filedlg.c
index 5e8f75e..58b57cc 100644
--- a/dlls/comdlg32/filedlg.c
+++ b/dlls/comdlg32/filedlg.c
@@ -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)
{
--
1.5.4.3
More information about the wine-patches
mailing list