Skip to content
Snippets Groups Projects
Commit ab5bba62 authored by Stefan Leichter's avatar Stefan Leichter Committed by Alexandre Julliard
Browse files

Added NULL pointer check in CallWindowProc16.

parent 7ac10d50
No related branches found
Tags wine-940804
No related merge requests found
......@@ -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 (!func) return 0;
if (!proc)
if (!(proc = WINPROC_GetPtr( func )))
return WINPROC_CallWndProc16( func, hwnd, msg, wParam, lParam );
#if testing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment