Pass the correct lparam when calling PageDlgProcA's PageSetupHook for WM_INITDIALOG - 2nd try

Mike McCormack mike at codeweavers.com
Wed Oct 15 22:19:00 CDT 2003


This time with the patch... thanks to Uwe and Vincent for pointing out 
something was missing...

Mike


ChangeLog:
* Pass the correct lparam when calling PageDlgProcA's PageSetupHook for 
WM_INITDIALOG
-------------- next part --------------
Index: dlls/commdlg/printdlg.c
===================================================================
RCS file: /home/wine/wine/dlls/commdlg/printdlg.c,v
retrieving revision 1.71
diff -u -r1.71 printdlg.c
--- dlls/commdlg/printdlg.c	7 Oct 2003 22:51:09 -0000	1.71
+++ dlls/commdlg/printdlg.c	14 Oct 2003 13:36:12 -0000
@@ -2662,7 +2662,7 @@
         pda = (PageSetupDataA*)lParam;
 	SetPropA(hDlg,"__WINE_PAGESETUPDLGDATA",pda);
 	if (pda->dlga->Flags & PSD_ENABLEPAGESETUPHOOK) {
-	    res = pda->dlga->lpfnPageSetupHook(hDlg,uMsg,wParam,lParam);
+	    res = pda->dlga->lpfnPageSetupHook(hDlg,uMsg,wParam,(LPARAM)pda->dlga);
 	    if (!res) {
 		FIXME("Setup page hook failed?\n");
 		res = TRUE;
@@ -2744,7 +2744,7 @@
         pda = (PageSetupDataW*)lParam;
 	SetPropA(hDlg,"__WINE_PAGESETUPDLGDATA",pda);
 	if (pda->dlga->Flags & PSD_ENABLEPAGESETUPHOOK) {
-	    res = pda->dlga->lpfnPageSetupHook(hDlg,uMsg,wParam,lParam);
+	    res = pda->dlga->lpfnPageSetupHook(hDlg,uMsg,wParam,(LPARAM)pda->dlga);
 	    if (!res) {
 		FIXME("Setup page hook failed?\n");
 		res = TRUE;


More information about the wine-patches mailing list