Make Size Returned from HeapSize Always Match The Requested Size
Alexandre Julliard
julliard at winehq.org
Sun Jul 10 10:43:16 CDT 2005
Robert Shearman <rob at 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 at winehq.org
More information about the wine-devel
mailing list