Juan Lang : comdlg32: Initialize file dialog controls before creating dialog.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jun 7 16:26:40 CDT 2007


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

Author: Juan Lang <juan_lang at yahoo.com>
Date:   Thu Jun  7 12:27:11 2007 -0700

comdlg32: Initialize file dialog controls before creating dialog.

---

 dlls/comdlg32/filedlg.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/comdlg32/filedlg.c b/dlls/comdlg32/filedlg.c
index f63e64f..5409b91 100644
--- a/dlls/comdlg32/filedlg.c
+++ b/dlls/comdlg32/filedlg.c
@@ -1037,11 +1037,11 @@ INT_PTR CALLBACK FileOpenDlgProc95(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM l
             so it will be easily accessible through a GetPropA(...) */
       	 SetPropA(hwnd, FileOpenDlgInfosStr, (HANDLE) fodInfos);
 
+         FILEDLG95_InitControls(hwnd);
+
       	 fodInfos->DlgInfos.hwndCustomDlg =
      	   CreateTemplateDialog((FileOpenDlgInfos *)lParam, hwnd);
 
-         FILEDLG95_InitControls(hwnd);
-
          if (fodInfos->DlgInfos.hwndCustomDlg)
          {
              RECT rc;




More information about the wine-cvs mailing list