mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
use the correct index in Module32Next
svn path=/trunk/; revision=26395
This commit is contained in:
@@ -760,11 +760,11 @@ Module32NextW(HANDLE hSnapshot, LPMODULEENTRY32W lpme)
|
||||
{
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user