From d5ec19ab4ebfa3431cdf896a7eb3cac9b425fae3 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Tue, 11 Nov 2008 23:11:39 +0000 Subject: [PATCH] - Works with qemu, but, not with real hardware. svn path=/trunk/; revision=37298 --- reactos/subsystems/win32/win32k/main/dllmain.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/subsystems/win32/win32k/main/dllmain.c b/reactos/subsystems/win32/win32k/main/dllmain.c index 5439908416b..5bc3a528849 100644 --- a/reactos/subsystems/win32/win32k/main/dllmain.c +++ b/reactos/subsystems/win32/win32k/main/dllmain.c @@ -275,7 +275,10 @@ Win32kThreadCallback(struct _ETHREAD *Thread, Win32Thread->ppi = PsGetCurrentProcessWin32Process(); pTeb = NtCurrentTeb(); if (pTeb) + { Win32Thread->pClientInfo = (PCLIENTINFO)pTeb->Win32ClientInfo; + Win32Thread->pClientInfo->pClientThreadInfo = NULL; + } Win32Thread->MessageQueue = MsqCreateMessageQueue(Thread); Win32Thread->KeyboardLayout = W32kGetDefaultKeyLayout(); if (Win32Thread->ThreadInfo) @@ -283,8 +286,6 @@ Win32kThreadCallback(struct _ETHREAD *Thread, Win32Thread->ThreadInfo->ClientThreadInfo.dwcPumpHook = 0; Win32Thread->pClientInfo->pClientThreadInfo = &Win32Thread->ThreadInfo->ClientThreadInfo; } - else - Win32Thread->pClientInfo->pClientThreadInfo = NULL; } else {