File Open Dialog: Use the specified instance handle for custom
dialog templates
Michael Kaufmann
hallo at michael-kaufmann.ch
Wed Feb 1 16:28:15 CST 2006
This makes the panda icon in IrfanView's file open dialog appear.
Changelog:
File Open Dialog: Use the specified instance handle for custom dialog
templates
-------------- next part --------------
Index: dlls/commdlg/filedlg.c
===================================================================
RCS file: /home/wine/wine/dlls/commdlg/filedlg.c,v
retrieving revision 1.119
diff -u -r1.119 filedlg.c
--- dlls/commdlg/filedlg.c 12 Jan 2006 12:46:53 -0000 1.119
+++ dlls/commdlg/filedlg.c 1 Feb 2006 21:37:14 -0000
@@ -739,7 +739,7 @@
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 @@
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-patches
mailing list