Gabriele Moabiti : comdlg32: Open should try to browse directory first.

Alexandre Julliard julliard at winehq.org
Thu Feb 18 12:49:24 CST 2010


Module: wine
Branch: master
Commit: c65a3e81f76bc1c124a262d7a9db96db35c3913f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c65a3e81f76bc1c124a262d7a9db96db35c3913f

Author: Gabriele Moabiti <gabmoa at yahoo.it>
Date:   Mon Feb 15 14:48:11 2010 +0100

comdlg32: Open should try to browse directory first.

---

 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)
   {




More information about the wine-cvs mailing list