Author: tfaber Date: Sat Mar 24 17:38:21 2012 New Revision: 56221
URL: http://svn.reactos.org/svn/reactos?rev=56221&view=rev Log: [RTL/HEAP] - Addendum to r56217. Let's not waste memory.
Modified: trunk/reactos/lib/rtl/heap.c
Modified: trunk/reactos/lib/rtl/heap.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/heap.c?rev=56221&am... ============================================================================== --- trunk/reactos/lib/rtl/heap.c [iso-8859-1] (original) +++ trunk/reactos/lib/rtl/heap.c [iso-8859-1] Sat Mar 24 17:38:21 2012 @@ -510,7 +510,7 @@ }
/* 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++;