mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
ntdll: Fill the tail of existing large blocks when the debug flags change.
This commit is contained in:
parent
dedabe9d54
commit
aa409c75f9
1 changed files with 5 additions and 0 deletions
|
@ -1341,6 +1341,7 @@ void heap_set_debug_flags( HANDLE handle )
|
|||
if (flags & (HEAP_FREE_CHECKING_ENABLED | HEAP_TAIL_CHECKING_ENABLED)) /* fix existing blocks */
|
||||
{
|
||||
SUBHEAP *subheap;
|
||||
ARENA_LARGE *large;
|
||||
|
||||
LIST_FOR_EACH_ENTRY( subheap, &heap->subheap_list, SUBHEAP, entry )
|
||||
{
|
||||
|
@ -1367,6 +1368,10 @@ void heap_set_debug_flags( HANDLE handle )
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
LIST_FOR_EACH_ENTRY( large, &heap->large_list, ARENA_LARGE, entry )
|
||||
mark_block_tail( (char *)(large + 1) + large->data_size,
|
||||
large->block_size - sizeof(*large) - large->data_size, flags );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue