Skip to content
Snippets Groups Projects
Commit a436cc64 authored by Rémi Bernon's avatar Rémi Bernon :speech_balloon: Committed by Alexandre Julliard
Browse files

ntdll: Ignore free list headers in HEAP_FindFreeBlock.

parent 8d441659
No related branches found
No related tags found
No related merge requests found
......@@ -1069,6 +1069,7 @@ static struct block *find_free_block( HEAP *heap, SIZE_T data_size, SUBHEAP **su
while ((ptr = list_next( &heap->freeList[0].arena.entry, ptr )))
{
entry = LIST_ENTRY( ptr, struct entry, entry );
if (entry->size == (0 | ARENA_FLAG_FREE)) continue;
arena_size = (entry->size & ARENA_SIZE_MASK) + sizeof(ARENA_FREE) - sizeof(ARENA_INUSE);
if (arena_size >= data_size)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment