Re: [2/3] ntdll: fill unused tails of heap blocks if HEAP_FREE_CHECKING_ENABLED (take 3)
8 Jan
2010
8 Jan
'10
9:10 a.m.
Dan Kegel <dank(a)kegel.com> writes:
@@ -1254,14 +1291,20 @@ HANDLE WINAPI RtlCreateHeap( ULONG flags, PVOID addr, SIZE_T totalSize, SIZE_T c { SUBHEAP *subheap;
- /* Allocate the heap block */ + /* Check global flags unless we're being called in virtual_init before they + * are available. Recognize that by comparing the arguments we know + * wine's virtual_init calls us with. + */ + if (flags != HEAP_NO_SERIALIZE && totalSize != VIRTUAL_HEAP_SIZE) + if ((RtlGetNtGlobalFlags() & FLG_HEAP_ENABLE_FREE_CHECK) != 0) + flags |= HEAP_FREE_CHECKING_ENABLED;
This makes no sense, there's nothing unique about these arguments. -- Alexandre Julliard julliard(a)winehq.org
5907
Age (days ago)
5907
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard