mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[WIN32K:NTUSER] In debug builds, enable free & tail checking when creating heaps
Actually catches bugs
This commit is contained in:
committed by
Jérôme Gardou
parent
b783b16cef
commit
bd6fb80867
@@ -163,7 +163,11 @@ IntUserHeapCreate(IN PVOID SectionObject,
|
||||
Parameters.InitialReserve = (SIZE_T)HeapSize;
|
||||
Parameters.CommitRoutine = IntUserHeapCommitRoutine;
|
||||
|
||||
pHeap = RtlCreateHeap(HEAP_ZERO_MEMORY | HEAP_NO_SERIALIZE,
|
||||
pHeap = RtlCreateHeap(
|
||||
#if DBG /* Enable checks on debug builds */
|
||||
HEAP_FREE_CHECKING_ENABLED | HEAP_TAIL_CHECKING_ENABLED |
|
||||
#endif
|
||||
HEAP_ZERO_MEMORY | HEAP_NO_SERIALIZE,
|
||||
*SystemMappedBase,
|
||||
(SIZE_T)HeapSize,
|
||||
ViewSize,
|
||||
|
||||
Reference in New Issue
Block a user