Re: Make Size Returned from HeapSize Always Match The Requested Size
10 Jul
2005
10 Jul
'05
10:43 a.m.
Robert Shearman <rob(a)codeweavers.com> writes:
--- dlls/ntdll/heap.c 25 Jun 2005 18:00:57 -0000 1.41 +++ dlls/ntdll/heap.c 8 Jul 2005 16:22:47 -0000 @@ -52,6 +52,9 @@ typedef struct tagARENA_INUSE { DWORD size; /* Block size; must be the first field */ DWORD magic; /* Magic number */ + BYTE unused_bytes; /* Number of bytes in the block not used by user data */ + BYTE reserved0[3]; /* Not used. Set to 0 */ + DWORD reserved1; /* Not used. Set to 0 */ } ARENA_INUSE;
I don't think we want to double the arena size for that. You can just steal a few bits from the magic number. -- Alexandre Julliard julliard(a)winehq.org
7550
Age (days ago)
7550
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard