Dan Kegel <d...@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 julli...@winehq.org