Author: fireball
Date: Fri Oct 8 20:17:39 2010
New Revision: 49058
URL:
http://svn.reactos.org/svn/reactos?rev=49058&view=rev
Log:
[HEAP]
- Roel Messiant: Fix infinite loop in RtlDestroyHeap if heap contained big blocks.
Modified:
trunk/reactos/lib/rtl/heap_rewrite.c
Modified: trunk/reactos/lib/rtl/heap_rewrite.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/heap_rewrite.c?rev…
==============================================================================
--- trunk/reactos/lib/rtl/heap_rewrite.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/heap_rewrite.c [iso-8859-1] Fri Oct 8 20:17:39 2010
@@ -1928,6 +1928,7 @@
{
VirtualEntry = CONTAINING_RECORD(Current, HEAP_VIRTUAL_ALLOC_ENTRY, Entry);
BaseAddress = (PVOID)VirtualEntry;
+ Current = Current->Flink;
Size = 0;
ZwFreeVirtualMemory(NtCurrentProcess(),
&BaseAddress,