ntdll: Use block size helpers in heap_size.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2022-05-03 22:59:54 +02:00 committed by Alexandre Julliard
parent adad22d1c2
commit accaf8f29a
1 changed files with 1 additions and 4 deletions

View File

@ -2054,10 +2054,7 @@ static NTSTATUS heap_size( HEAP *heap, const void *ptr, SIZE_T *size )
const ARENA_LARGE *large_arena = (const ARENA_LARGE *)ptr - 1;
*size = large_arena->data_size;
}
else
{
*size = (block->size & ARENA_SIZE_MASK) - block->unused_bytes;
}
else *size = block_get_size( block ) - block_get_overhead( block );
return STATUS_SUCCESS;
}