[win32k]
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Thu, 14 Oct 2010 18:53:12 +0000 (18:53 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Thu, 14 Oct 2010 18:53:12 +0000 (18:53 +0000)
- 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

index 6d6a752..e536d4c 100644 (file)
@@ -339,6 +339,8 @@ co_IntCallHookProc(INT HookId,
    PANSI_STRING asClassName;
    PTHREADINFO pti;
 
    PANSI_STRING asClassName;
    PTHREADINFO pti;
 
+   ASSERT(Proc);
+
    pti = PsGetCurrentThreadWin32Thread();
    if (pti->TIF_flags & TIF_INCLEANUP)
    {
    pti = PsGetCurrentThreadWin32Thread();
    if (pti->TIF_flags & TIF_INCLEANUP)
    {