This commit is contained in:
Timo Kreuzer 2025-03-28 15:18:08 +02:00
parent 3cae2d21ff
commit 2b8dee6e68
3 changed files with 13 additions and 2 deletions

View file

@ -1437,6 +1437,8 @@ RtlCreateHeap(ULONG Flags,
NTSTATUS Status;
ULONG MaxBlockSize;
RtlpPageHeapEnabled = TRUE;
/* Check for a special heap */
if (RtlpPageHeapEnabled && !Addr && !Lock)
{
@ -1457,6 +1459,9 @@ RtlCreateHeap(ULONG Flags,
Flags &= HEAP_CREATE_VALID_MASK;
}
if (!Addr)
Flags |= HEAP_FLAG_PAGE_ALLOCS;
/* Capture parameters */
if (Parameters)
{