Heap32ListFirst() should check the number of heaps in the list, not the numer of modules

svn path=/trunk/; revision=13315
This commit is contained in:
Thomas Bluemel 2005-01-26 17:53:01 +00:00
parent 87e84448db
commit a3d5e1cf55

View file

@ -550,7 +550,7 @@ Heap32ListFirst(HANDLE hSnapshot, LPHEAPLIST32 lphl)
{
BOOL Ret;
if(Snapshot->ModuleListCount > 0)
if(Snapshot->HeapListCount > 0)
{
LPHEAPLIST32 Entries = (LPHEAPLIST32)OffsetToPtr(Snapshot, Snapshot->HeapListOffset);
Snapshot->HeapListIndex = 1;