RtlpDphNumberOfDelayedFreeBlocks--;
/* Free the normal heap */
- RtlFreeHeap (NormalHeap, 0, BlockInfo);
+ RtlFreeHeap(NormalHeap, 0, BlockInfo);
}
/* Move to the next one */
RtlpPageHeapDestroy(HANDLE HeapPtr)
{
PDPH_HEAP_ROOT DphRoot;
+ PVOID Ptr;
PDPH_HEAP_BLOCK Node, Next;
PHEAP NormalHeap;
ULONG Value;
RtlpDphFreeDelayedBlocksFromHeap(DphRoot, NormalHeap);
/* Go through the busy blocks */
- Node = RtlEnumerateGenericTableAvl(&DphRoot->BusyNodesTable, TRUE);
+ Ptr = RtlEnumerateGenericTableAvl(&DphRoot->BusyNodesTable, TRUE);
- while (Node)
+ while (Ptr)
{
+ Node = CONTAINING_RECORD(Ptr, DPH_HEAP_BLOCK, pUserAllocation);
if (!(DphRoot->ExtraFlags & DPH_EXTRA_CHECK_UNDERRUN))
{
if (!RtlpDphIsPageHeapBlock(DphRoot, Node->pUserAllocation, &Value, TRUE))
//AVrfInternalHeapFreeNotification();
/* Go to the next node */
- Node = RtlEnumerateGenericTableAvl(&DphRoot->BusyNodesTable, FALSE);
+ Ptr = RtlEnumerateGenericTableAvl(&DphRoot->BusyNodesTable, FALSE);
}
/* Acquire the global heap list lock */