[RTL/HEAP]

- Addendum to r56217. Let's not waste memory.

svn path=/trunk/; revision=56221
This commit is contained in:
Thomas Faber 2012-03-24 17:38:21 +00:00
parent a0dbbba584
commit 504ebb0562

View file

@ -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++;