From 6b172f26a44a88ead9812d6622b7b3df48595082 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sun, 8 May 2016 08:07:11 +0000 Subject: [PATCH] [RTL] - 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/sdk/lib/rtl/heap.c b/reactos/sdk/lib/rtl/heap.c index c6df4499ddf..4fffb75305f 100644 --- a/reactos/sdk/lib/rtl/heap.c +++ b/reactos/sdk/lib/rtl/heap.c @@ -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); -- 2.17.1