mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
The Win32ClientInfo TEB field can be bigger than the CLIENTINFO structure.
svn path=/trunk/; revision=47862
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user