mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
The Win32ClientInfo TEB field can be bigger than the CLIENTINFO structure.
svn path=/trunk/; revision=47862
This commit is contained in:
parent
0cd695d643
commit
b51143af5f
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue