[2/3] ntdll: fill unused tails of heap blocks if HEAP_FREE_CHECKING_ENABLED (take 3)

Alexandre Julliard julliard at winehq.org
Fri Jan 8 08:52:25 CST 2010


Dan Kegel <dank at kegel.com> writes:

> Posting a working if suboptimal implementation
> is a clear way of framing questions sometimes,
> but I guess when I do that it should be to wine-devel.

Questions and RFCs should go to wine-devel. Sending to wine-patches
means "I believe this is good enough to be committed".

> Maybe what we want is a safe implementation of RtlGetNtGlobalFlags(), one
> that returns zero if it's not safe to call NtCurrentTeb().
> We could store the global flags in a plain old global variable,
> and copy it in to the peb but never reference it there, I suppose.
> Would that be clean enough for you?  Or is that still too kludgy?

There's no reason that RtlGetNtGlobalFlags would need the TEB at all.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list