From 692b1c23aa28b6062f85c75b7f9a31f0c91ddbb4 Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Thu, 14 Oct 2010 18:53:12 +0000 Subject: [PATCH] [win32k] - When we try to call a hook with null hook proc will cause a crash in user32. Add an assertion in win32k in order to catch the problem a bit earlier svn path=/trunk/; revision=49145 --- reactos/subsystems/win32/win32k/ntuser/callback.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/subsystems/win32/win32k/ntuser/callback.c b/reactos/subsystems/win32/win32k/ntuser/callback.c index 6d6a7529ea0..e536d4ca7e1 100644 --- a/reactos/subsystems/win32/win32k/ntuser/callback.c +++ b/reactos/subsystems/win32/win32k/ntuser/callback.c @@ -339,6 +339,8 @@ co_IntCallHookProc(INT HookId, PANSI_STRING asClassName; PTHREADINFO pti; + ASSERT(Proc); + pti = PsGetCurrentThreadWin32Thread(); if (pti->TIF_flags & TIF_INCLEANUP) {