diff --git a/dlls/psapi/psapi_main.c b/dlls/psapi/psapi_main.c index 7b1588b18a8..9fe8281f9d3 100644 --- a/dlls/psapi/psapi_main.c +++ b/dlls/psapi/psapi_main.c @@ -66,7 +66,7 @@ static BOOL PSAPI_ModuleIteratorInit(MODULE_ITERATOR *iter, HANDLE hProcess) } /* Read address of LdrData from PEB */ - if (!ReadProcessMemory(hProcess, &((PPEB)pbi.PebBaseAddress)->LdrData, + if (!ReadProcessMemory(hProcess, &pbi.PebBaseAddress->LdrData, &pLdrData, sizeof(pLdrData), NULL)) return FALSE;