From a3d5e1cf556984bcc7176fc814471dca6cfb0163 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Wed, 26 Jan 2005 17:53:01 +0000 Subject: [PATCH] Heap32ListFirst() should check the number of heaps in the list, not the numer of modules svn path=/trunk/; revision=13315 --- reactos/lib/kernel32/misc/toolhelp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/kernel32/misc/toolhelp.c b/reactos/lib/kernel32/misc/toolhelp.c index 9d2bb1a0df8..0ccb5f67da5 100644 --- a/reactos/lib/kernel32/misc/toolhelp.c +++ b/reactos/lib/kernel32/misc/toolhelp.c @@ -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;