Added NULL pointer check in CallWindowProc16.

This commit is contained in:
Stefan Leichter 2002-05-07 18:31:10 +00:00 committed by Alexandre Julliard
parent 7ac10d5007
commit ab5bba62f9

View file

@ -2564,9 +2564,11 @@ static LRESULT WINAPI WINPROC_CallProc32WTo16( WNDPROC16 func, HWND hwnd,
LRESULT WINAPI CallWindowProc16( WNDPROC16 func, HWND16 hwnd, UINT16 msg,
WPARAM16 wParam, LPARAM lParam )
{
WINDOWPROC *proc = WINPROC_GetPtr( func );
WINDOWPROC *proc;
if (!proc)
if (!func) return 0;
if (!(proc = WINPROC_GetPtr( func )))
return WINPROC_CallWndProc16( func, hwnd, msg, wParam, lParam );
#if testing