mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 17:06:29 +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:
parent
129f3f133d
commit
46819fb8ac
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue