oledlg: Call the hook proc if present.
diff --git a/dlls/oledlg/pastespl.c b/dlls/oledlg/pastespl.c
index ece44fd..d4cdadc 100644
--- a/dlls/oledlg/pastespl.c
+++ b/dlls/oledlg/pastespl.c
@@ -415,6 +415,12 @@
{
if(!ps_struct)
return 0;
+
+ if(ps_struct->ps->lpfnHook)
+ {
+ INT_PTR ret = ps_struct->ps->lpfnHook(hdlg, msg, wp, lp);
+ if(ret) return ret;
+ }
}
switch(msg)
@@ -442,6 +448,8 @@
SetFocus(GetDlgItem(hdlg, IDC_PS_DISPLAYLIST));
+ if(ps_struct->ps->lpfnHook)
+ ps_struct->ps->lpfnHook(hdlg, msg, 0, 0);
return FALSE; /* use new focus */
}
case WM_COMMAND: