Heap32ListFirst() should check the number of heaps in the list, not the numer of modules
Modified: trunk/reactos/lib/kernel32/misc/toolhelp.c
--- trunk/reactos/lib/kernel32/misc/toolhelp.c 2005-01-26 14:38:27 UTC (rev 13314) +++ trunk/reactos/lib/kernel32/misc/toolhelp.c 2005-01-26 17:53:01 UTC (rev 13315) @@ -550,7 +550,7 @@
{ BOOL Ret;
- if(Snapshot->ModuleListCount > 0)
+ if(Snapshot->HeapListCount > 0)
{ LPHEAPLIST32 Entries = (LPHEAPLIST32)OffsetToPtr(Snapshot, Snapshot->HeapListOffset); Snapshot->HeapListIndex = 1;