Re: ntdll: add partial support for HEAP_FREE_CHECKING_ENABLED heap overrun detection (take 3)
4 Dec
2009
4 Dec
'09
6:20 a.m.
Dan Kegel <dank(a)kegel.com> writes:
@@ -1261,6 +1297,8 @@ HANDLE WINAPI RtlCreateHeap( ULONG flags, PVOID addr, SIZE_T totalSize, SIZE_T c totalSize = HEAP_DEF_SIZE; flags |= HEAP_GROWABLE; } + if (NtCurrentTeb() && NtCurrentTeb()->Peb && (NtCurrentTeb()->Peb->NtGlobalFlag & FLG_HEAP_ENABLE_FREE_CHECK)) + flags |= HEAP_FREE_CHECKING_ENABLED;
This can't work, you can't use NtCurrentTeb before the TEB is properly initialized. -- Alexandre Julliard julliard(a)winehq.org
5854
Age (days ago)
5854
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard