Michael Kaufmann : commdlg: File open dialog: Use the specified instance handle for

Alexandre Julliard julliard at wine.codeweavers.com
Thu Feb 2 07:09:14 CST 2006


Module: wine
Branch: refs/heads/master
Commit: 62725d685c769d1b5c38c8ae56f4128ced649bf0
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=62725d685c769d1b5c38c8ae56f4128ced649bf0

Author: Michael Kaufmann <hallo at michael-kaufmann.ch>
Date:   Thu Feb  2 13:20:23 2006 +0100

commdlg: File open dialog: Use the specified instance handle for
custom dialog templates.

---

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

diff --git a/dlls/commdlg/filedlg.c b/dlls/commdlg/filedlg.c
index 014e9f3..e4a0463 100644
--- a/dlls/commdlg/filedlg.c
+++ b/dlls/commdlg/filedlg.c
@@ -739,7 +739,7 @@ static HWND CreateTemplateDialog(FileOpe
       HINSTANCE hinst;
       if (fodInfos->ofnInfos->Flags  & OFN_ENABLETEMPLATEHANDLE)
       {
-        hinst = 0;
+        hinst = COMDLG32_hInstance;
         if( !(template = LockResource( fodInfos->ofnInfos->hInstance)))
         {
           COMDLG32_SetCommDlgExtendedError(CDERR_LOADRESFAILURE);
@@ -771,7 +771,7 @@ static HWND CreateTemplateDialog(FileOpe
           return NULL;
     	}
       }
-      hChildDlg = CreateDialogIndirectParamA(COMDLG32_hInstance, template, hwnd,
+      hChildDlg = CreateDialogIndirectParamA(hinst, template, hwnd,
                                              IsHooked(fodInfos) ? (DLGPROC)fodInfos->ofnInfos->lpfnHook : FileOpenDlgProcUserTemplate,
                                              (LPARAM)fodInfos->ofnInfos);
       if(hChildDlg)




More information about the wine-cvs mailing list