From 24acd670a468e19029c9be2ff94b0ca98eb6f607 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Sun, 24 Oct 2010 04:36:45 +0000 Subject: [PATCH] [Win32k] - Fix an exception when set condition * first always is used then moving the mouse. There seems to be an initialization issue (The Init Bug) and not setting a desktop. svn path=/trunk/; revision=49250 --- reactos/subsystems/win32/win32k/ntuser/hook.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/hook.c b/reactos/subsystems/win32/win32k/ntuser/hook.c index d83c8c90c31..343b153bda5 100644 --- a/reactos/subsystems/win32/win32k/ntuser/hook.c +++ b/reactos/subsystems/win32/win32k/ntuser/hook.c @@ -873,8 +873,7 @@ co_HOOK_CallHooks( INT HookId, ASSERT(WH_MINHOOK <= HookId && HookId <= WH_MAXHOOK); - pti = GetW32ThreadInfo(); // Need to call this! - + pti = PsGetCurrentThreadWin32Thread(); if (!pti || !pti->pDeskInfo) goto Exit; // Must have a desktop running for hooks.