Author: cwittich
Date: Wed Apr 18 17:39:26 2007
New Revision: 26395
URL:
http://svn.reactos.org/svn/reactos?rev=26395&view=rev
Log:
use the correct index in Module32Next
Modified:
trunk/reactos/dll/win32/kernel32/misc/toolhelp.c
Modified: trunk/reactos/dll/win32/kernel32/misc/toolhelp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/to…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/misc/toolhelp.c (original)
+++ trunk/reactos/dll/win32/kernel32/misc/toolhelp.c Wed Apr 18 17:39:26 2007
@@ -760,11 +760,11 @@
{
BOOL Ret;
- if(Snapshot->ModuleListCount > 0 &&
- Snapshot->ModuleListIndex < Snapshot->ModuleListCount)
+ if((Snapshot->ModuleListCount > 0) &&
+ (Snapshot->ModuleListIndex < Snapshot->ModuleListCount))
{
LPMODULEENTRY32W Entries = (LPMODULEENTRY32W)OffsetToPtr(Snapshot,
Snapshot->ModuleListOffset);
- RtlCopyMemory(lpme, &Entries[Snapshot->ProcessListIndex++],
sizeof(MODULEENTRY32W));
+ RtlCopyMemory(lpme, &Entries[Snapshot->ModuleListIndex++],
sizeof(MODULEENTRY32W));
Ret = TRUE;
}
else