From a3647b9727bdbecc39ea5c763a91e30d10b43598 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Fri, 7 Jan 2011 15:33:46 +0000 Subject: [PATCH] [HEAP] - Fix a typo (assignment) in the ASSERT, spotted by Johannes Anderwald. svn path=/trunk/; revision=50309 --- reactos/lib/rtl/heap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/lib/rtl/heap.c b/reactos/lib/rtl/heap.c index 2c28b6a76d7..c4fd7aeb91c 100644 --- a/reactos/lib/rtl/heap.c +++ b/reactos/lib/rtl/heap.c @@ -238,7 +238,7 @@ RtlpInsertFreeBlockHelper(PHEAP Heap, /* Check if PreviousSize of the next entry matches ours */ if (!(FreeEntry->Flags & HEAP_ENTRY_LAST_ENTRY)) { - ASSERT(((PHEAP_ENTRY)FreeEntry + BlockSize)->PreviousSize = BlockSize); + ASSERT(((PHEAP_ENTRY)FreeEntry + BlockSize)->PreviousSize == BlockSize); } /* Insert it either into dedicated or non-dedicated list */ @@ -2344,6 +2344,7 @@ BOOLEAN NTAPI RtlFreeHeap( /* Release the heap lock */ if (Locked) RtlLeaveHeapLock(Heap->LockVariable); + DbgBreakPoint(); return FALSE; }