mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +00:00
[WIN32K:NTUSER] In debug builds, enable free & tail checking when creating heaps
Actually catches bugs
This commit is contained in:
parent
b783b16cef
commit
bd6fb80867
1 changed files with 5 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue