mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
Added NULL pointer check in CallWindowProc16.
This commit is contained in:
parent
7ac10d5007
commit
ab5bba62f9
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue