From 9af12506b0395b9d6bc035b31e6a9f8dde451650 Mon Sep 17 00:00:00 2001 From: Dan Kegel Date: Sat, 9 Jun 2012 19:42:13 -0700 Subject: [PATCH] ntdll: Avoid clobbering valgrind annotations during HeapReAlloc. --- dlls/ntdll/heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntdll/heap.c b/dlls/ntdll/heap.c index 6ca509a747c..a9044714f86 100644 --- a/dlls/ntdll/heap.c +++ b/dlls/ntdll/heap.c @@ -1892,8 +1892,8 @@ PVOID WINAPI RtlReAllocateHeap( HANDLE heap, ULONG flags, PVOID ptr, SIZE_T size } else { - HEAP_ShrinkBlock( subheap, pArena, rounded_size ); notify_realloc( pArena + 1, oldActualSize, size ); + HEAP_ShrinkBlock( subheap, pArena, rounded_size ); } pArena->unused_bytes = (pArena->size & ARENA_SIZE_MASK) - size;