psapi: Remove unneeded cast

Andrew Talbot andrew.talbot at talbotville.com
Tue Jan 15 15:49:17 CST 2008


Changelog:
    psapi: Remove unneeded cast.

diff --git a/dlls/psapi/psapi_main.c b/dlls/psapi/psapi_main.c
index 7b1588b..9fe8281 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;
 



More information about the wine-patches mailing list