From 33807ac093070d1572461e8e72783de12da5ed17 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 11 Mar 2011 11:47:08 +0100 Subject: [PATCH] user.exe: Don't try calling the WH_CALLWNDPROC hook if no hook was set. --- dlls/user.exe16/hook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/user.exe16/hook.c b/dlls/user.exe16/hook.c index 105254e8b77..d140e16e426 100644 --- a/dlls/user.exe16/hook.c +++ b/dlls/user.exe16/hook.c @@ -192,7 +192,7 @@ void call_WH_CALLWNDPROC_hook( HWND16 hwnd, UINT16 msg, WPARAM16 wp, LPARAM lp ) CWPSTRUCT16 cwp; 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.message = msg;