mirror of
https://github.com/reactos/reactos.git
synced 2025-07-07 21:57:52 +00:00
- Don't go SIZE_T crazy.
svn path=/branches/ros-amd64-bringup/; revision=38593
This commit is contained in:
parent
f82333b8ea
commit
6e949303bb
1 changed files with 9 additions and 9 deletions
|
@ -69,15 +69,15 @@
|
||||||
typedef struct tagARENA_INUSE
|
typedef struct tagARENA_INUSE
|
||||||
{
|
{
|
||||||
SIZE_T size; /* Block size; must be the first field */
|
SIZE_T size; /* Block size; must be the first field */
|
||||||
SIZE_T magic : 23; /* Magic number */
|
DWORD magic : 23; /* Magic number */
|
||||||
SIZE_T has_user_data : 1; /* There is user data associated with this block */
|
DWORD has_user_data : 1; /* There is user data associated with this block */
|
||||||
SIZE_T unused_bytes : 8; /* Number of bytes in the block not used by user data (max value is HEAP_MIN_DATA_SIZE+HEAP_MIN_SHRINK_SIZE) */
|
DWORD unused_bytes : 8; /* Number of bytes in the block not used by user data (max value is HEAP_MIN_DATA_SIZE+HEAP_MIN_SHRINK_SIZE) */
|
||||||
} ARENA_INUSE;
|
} ARENA_INUSE;
|
||||||
|
|
||||||
typedef struct tagARENA_FREE
|
typedef struct tagARENA_FREE
|
||||||
{
|
{
|
||||||
SIZE_T size; /* Block size; must be the first field */
|
SIZE_T size; /* Block size; must be the first field */
|
||||||
SIZE_T magic; /* Magic number */
|
DWORD magic; /* Magic number */
|
||||||
struct list entry; /* Entry in free list */
|
struct list entry; /* Entry in free list */
|
||||||
} ARENA_FREE;
|
} ARENA_FREE;
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ typedef struct tagSUBHEAP
|
||||||
SIZE_T headerSize; /* Size of the heap header */
|
SIZE_T headerSize; /* Size of the heap header */
|
||||||
struct tagSUBHEAP *next; /* Next sub-heap */
|
struct tagSUBHEAP *next; /* Next sub-heap */
|
||||||
struct tagHEAP *heap; /* Main heap structure */
|
struct tagHEAP *heap; /* Main heap structure */
|
||||||
SIZE_T magic; /* Magic number */
|
DWORD magic; /* Magic number */
|
||||||
} SUBHEAP;
|
} SUBHEAP;
|
||||||
|
|
||||||
#define SUBHEAP_MAGIC ((DWORD)('S' | ('U'<<8) | ('B'<<16) | ('H'<<24)))
|
#define SUBHEAP_MAGIC ((DWORD)('S' | ('U'<<8) | ('B'<<16) | ('H'<<24)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue