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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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
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;

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux