Commit ec37a87e authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

comdlg32: Don't call the callback if it's not set.

parent d285629c
......@@ -3994,8 +3994,11 @@ static UINT_PTR CALLBACK pdlgex_hook_proc(HWND hwnd, UINT msg, WPARAM wp, LPARAM
PRINTDLGW *pd = (PRINTDLGW *)lp;
struct callback_data *cb = (struct callback_data *)pd->lCustData;
cb->callback->lpVtbl->SelectionChange(cb->callback);
cb->callback->lpVtbl->InitDone(cb->callback);
if (cb->callback)
{
cb->callback->lpVtbl->SelectionChange(cb->callback);
cb->callback->lpVtbl->InitDone(cb->callback);
}
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment