Pass the correct lparam when calling PageDlgProcA's PageSetupHook for

WM_INITDIALOG.
This commit is contained in:
Mike McCormack 2003-10-14 20:06:46 +00:00 committed by Alexandre Julliard
parent 41d6b67c7f
commit 4fcb06a5a9
1 changed files with 2 additions and 2 deletions

View File

@ -2662,7 +2662,7 @@ PageDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
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 @@ PageDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
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;