File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ typedef struct _PEB
124
124
ULONG NumberOfProcessors ;
125
125
ULONG NtGlobalFlag ;
126
126
127
- LARGE_INTEGER CriticalSectionTimeout ;
127
+ ULARGE_INTEGER CriticalSectionTimeout ;
128
128
SIZE_T HeapSegmentReserve ;
129
129
SIZE_T HeapSegmentCommit ;
130
130
SIZE_T HeapDeCommitTotalFreeThreshold ;
@@ -200,6 +200,14 @@ typedef struct _PEB
200
200
ULONG CloudFileFlags ;
201
201
} PEB , * PPEB ;
202
202
203
+ #ifdef _WIN64
204
+ C_ASSERT (FIELD_OFFSET (PEB , SessionId ) == 0x2C0 );
205
+ C_ASSERT (sizeof (PEB ) == 0x7B0 );
206
+ #else
207
+ C_ASSERT (FIELD_OFFSET (PEB , SessionId ) == 0x1D4 );
208
+ C_ASSERT (sizeof (PEB ) == 0x468 );
209
+ #endif
210
+
203
211
#define GDI_BATCH_BUFFER_SIZE 310
204
212
205
213
typedef struct _GDI_TEB_BATCH
Original file line number Diff line number Diff line change 44
44
#define GDI_HANDLE_BUFFER_SIZE32 34
45
45
#define GDI_HANDLE_BUFFER_SIZE64 60
46
46
47
- #ifndef WIN64
47
+ #ifndef _WIN64
48
48
#define GDI_HANDLE_BUFFER_SIZE GDI_HANDLE_BUFFER_SIZE32
49
49
#else
50
50
#define GDI_HANDLE_BUFFER_SIZE GDI_HANDLE_BUFFER_SIZE64
You can’t perform that action at this time.
0 commit comments