Commit 33807ac0 authored by Alexandre Julliard's avatar Alexandre Julliard

user.exe: Don't try calling the WH_CALLWNDPROC hook if no hook was set.

parent 517f5ba5
...@@ -192,7 +192,7 @@ void call_WH_CALLWNDPROC_hook( HWND16 hwnd, UINT16 msg, WPARAM16 wp, LPARAM lp ) ...@@ -192,7 +192,7 @@ void call_WH_CALLWNDPROC_hook( HWND16 hwnd, UINT16 msg, WPARAM16 wp, LPARAM lp )
CWPSTRUCT16 cwp; CWPSTRUCT16 cwp;
struct hook16_queue_info *info = get_hook_info( FALSE ); struct hook16_queue_info *info = get_hook_info( FALSE );
if (!info->proc[WH_CALLWNDPROC - WH_MINHOOK]) return; if (!info || !info->proc[WH_CALLWNDPROC - WH_MINHOOK]) return;
cwp.hwnd = hwnd; cwp.hwnd = hwnd;
cwp.message = msg; cwp.message = msg;
......
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