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

Alexandre Julliard julliard at winehq.org
Fri Mar 11 10:23:37 CST 2011


Module: wine
Branch: master
Commit: 33807ac093070d1572461e8e72783de12da5ed17
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=33807ac093070d1572461e8e72783de12da5ed17

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Mar 11 11:47:08 2011 +0100

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

---

 dlls/user.exe16/hook.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/user.exe16/hook.c b/dlls/user.exe16/hook.c
index 105254e..d140e16 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;




More information about the wine-cvs mailing list