Author: tkreuzer
Date: Sat Oct 18 18:01:57 2008
New Revision: 36817
URL:
http://svn.reactos.org/svn/reactos?rev=36817&view=rev
Log:
Win32 structure cleanup (WIP):
Initialite THREADINFOs pClientInfo member
Modified:
trunk/reactos/subsystems/win32/win32k/main/dllmain.c
Modified: trunk/reactos/subsystems/win32/win32k/main/dllmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ma…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/main/dllmain.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/main/dllmain.c [iso-8859-1] Sat Oct 18 18:01:57
2008
@@ -203,6 +203,7 @@
if (Type == PsW32ThreadCalloutInitialize)
{
HWINSTA hWinSta = NULL;
+ PTEB pTeb;
HDESK hDesk = NULL;
NTSTATUS Status;
PUNICODE_STRING DesktopPath;
@@ -270,6 +271,9 @@
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)