The Win32ClientInfo TEB field can be bigger than the CLIENTINFO structure.
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sun, 27 Jun 2010 15:20:34 +0000 (15:20 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Sun, 27 Jun 2010 15:20:34 +0000 (15:20 +0000)
svn path=/trunk/; revision=47862

reactos/include/reactos/win32k/ntuser.h

index 007fa88..b8019ac 100644 (file)
@@ -216,8 +216,8 @@ typedef struct _CLIENTINFO
     PPROCESSINFO ppi;
 } CLIENTINFO, *PCLIENTINFO;
 
-/* Make sure it fits exactly into the TEB */
-C_ASSERT(sizeof(CLIENTINFO) == FIELD_OFFSET(TEB, glDispatchTable) - FIELD_OFFSET(TEB, Win32ClientInfo));
+/* Make sure it fits into the TEB */
+C_ASSERT(sizeof(CLIENTINFO) <= sizeof(((PTEB)0)->Win32ClientInfo));
 
 #define GetWin32ClientInfo() ((PCLIENTINFO)(NtCurrentTeb()->Win32ClientInfo))