[ros-diffs] [tfaber] 56221: [RTL/HEAP] - Addendum to r56217. Let's not waste memory.

tfaber at svn.reactos.org tfaber at svn.reactos.org
Sat Mar 24 17:38:22 UTC 2012


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&r1=56220&r2=56221&view=diff
==============================================================================
--- 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++;




More information about the Ros-diffs mailing list