- Roel Messiant: Fix infinite loop in RtlDestroyHeap if heap contained big blocks.

svn path=/trunk/; revision=49058
This commit is contained in:
Aleksey Bragin 2010-10-08 20:17:39 +00:00
parent 129f3f133d
commit 46819fb8ac

View file

@ -1928,6 +1928,7 @@ RtlDestroyHeap(HANDLE HeapPtr) /* [in] Handle of heap */
{
VirtualEntry = CONTAINING_RECORD(Current, HEAP_VIRTUAL_ALLOC_ENTRY, Entry);
BaseAddress = (PVOID)VirtualEntry;
Current = Current->Flink;
Size = 0;
ZwFreeVirtualMemory(NtCurrentProcess(),
&BaseAddress,