Win32 structure cleanup (WIP):

Initialite THREADINFOs pClientInfo member

svn path=/trunk/; revision=36817
This commit is contained in:
Timo Kreuzer 2008-10-18 23:01:57 +00:00
parent c9a04929cc
commit 6d76cb42e5

View file

@ -203,6 +203,7 @@ Win32kThreadCallback(struct _ETHREAD *Thread,
if (Type == PsW32ThreadCalloutInitialize)
{
HWINSTA hWinSta = NULL;
PTEB pTeb;
HDESK hDesk = NULL;
NTSTATUS Status;
PUNICODE_STRING DesktopPath;
@ -270,6 +271,9 @@ Win32kThreadCallback(struct _ETHREAD *Thread,
Win32Thread->IsExiting = FALSE;
co_IntDestroyCaret(Win32Thread);
Win32Thread->ppi = PsGetCurrentProcessWin32Process();
pTeb = NtCurrentTeb();
if (pTeb)
Win32Thread->pClientInfo = (PCLIENTINFO)pTeb->Win32ClientInfo;
Win32Thread->MessageQueue = MsqCreateMessageQueue(Thread);
Win32Thread->KeyboardLayout = W32kGetDefaultKeyLayout();
if (Win32Thread->ThreadInfo)