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

This commit is contained in:
Huw Davies 2013-06-25 11:48:16 +01:00 committed by Alexandre Julliard
parent d285629cf4
commit ec37a87e95

View File

@ -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
{