mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[HEAP]
- Roel Messiant: Fix infinite loop in RtlDestroyHeap if heap contained big blocks. svn path=/trunk/; revision=49058
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user