diff --git a/sdk/lib/rtl/heap.c b/sdk/lib/rtl/heap.c index 1c6df2996f..9fcf370ea7 100644 --- a/sdk/lib/rtl/heap.c +++ b/sdk/lib/rtl/heap.c @@ -1236,6 +1236,8 @@ RtlCreateHeap(ULONG Flags, NTSTATUS Status; ULONG MaxBlockSize; + RtlpPageHeapEnabled = TRUE; + /* Check for a special heap */ if (RtlpPageHeapEnabled && !Addr && !Lock) { @@ -1256,6 +1258,8 @@ RtlCreateHeap(ULONG Flags, Flags &= HEAP_CREATE_VALID_MASK; } + if (!Addr) Flags |= HEAP_FLAG_PAGE_ALLOCS; + /* Capture parameters */ if (Parameters) {