From 504ebb0562f6d641d5b3f0646f5db7e54bcbc192 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sat, 24 Mar 2012 17:38:21 +0000 Subject: [PATCH] [RTL/HEAP] - Addendum to r56217. Let's not waste memory. svn path=/trunk/; revision=56221 --- reactos/lib/rtl/heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/rtl/heap.c b/reactos/lib/rtl/heap.c index fb70cb60384..6c6e0d29712 100644 --- a/reactos/lib/rtl/heap.c +++ b/reactos/lib/rtl/heap.c @@ -510,7 +510,7 @@ RtlpCreateUnCommittedRange(PHEAP_SEGMENT Segment) } /* There is a whole bunch of new UCR descriptors. Put them into the unused list */ - while ((PCHAR)(UcrDescriptor + 1) < (PCHAR)UcrSegment + UcrSegment->CommittedSize) + while ((PCHAR)(UcrDescriptor + 1) <= (PCHAR)UcrSegment + UcrSegment->CommittedSize) { InsertTailList(&Heap->UCRList, &UcrDescriptor->ListEntry); UcrDescriptor++;