[RTL]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 8 May 2016 08:07:11 +0000 (08:07 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 8 May 2016 08:07:11 +0000 (08:07 +0000)
- In RtlpGrowBlockInPlace, copy the heap block's user value if the old block has the HEAP_ENTRY_EXTRA_PRESENT flag, instead of looking at the flags of the following block (where this will never be set).
CORE-11196 #resolve

svn path=/trunk/; revision=71279

reactos/sdk/lib/rtl/heap.c

index c6df449..4fffb75 100644 (file)
@@ -2359,7 +2359,7 @@ RtlpGrowBlockInPlace (IN PHEAP Heap,
     }
 
     /* Process extra stuff */
-    if (RememberFlags & HEAP_ENTRY_EXTRA_PRESENT)
+    if (EntryFlags & HEAP_ENTRY_EXTRA_PRESENT)
     {
         /* Calculate pointers */
         OldExtra = (PHEAP_ENTRY_EXTRA)(InUseEntry + InUseEntry->Size - 1);