Michael Stefaniuc : psapi: Remove superfluous pointer casts.
Alexandre Julliard
julliard at winehq.org
Fri Jan 30 07:58:22 CST 2009
Module: wine
Branch: master
Commit: 5358233561c72562046467df8eab97ee7838c21c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5358233561c72562046467df8eab97ee7838c21c
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Fri Jan 30 10:39:42 2009 +0100
psapi: Remove superfluous pointer casts.
---
dlls/psapi/psapi_main.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/psapi/psapi_main.c b/dlls/psapi/psapi_main.c
index 7f90a21..72484dc 100644
--- a/dlls/psapi/psapi_main.c
+++ b/dlls/psapi/psapi_main.c
@@ -135,7 +135,7 @@ static BOOL PSAPI_GetLdrModule(HANDLE hProcess, HMODULE hModule,
while ((ret = PSAPI_ModuleIteratorNext(&iter)) > 0)
/* When hModule is NULL we return the process image - which will be
* the first module since our iterator uses InLoadOrderModuleList */
- if (!hModule || hModule == (HMODULE)iter.LdrModule.BaseAddress)
+ if (!hModule || hModule == iter.LdrModule.BaseAddress)
{
*pLdrModule = iter.LdrModule;
return TRUE;
@@ -256,7 +256,7 @@ BOOL WINAPI EnumProcessModules(HANDLE hProcess, HMODULE *lphModule,
{
if (cb >= sizeof(HMODULE))
{
- *lphModule++ = (HMODULE)iter.LdrModule.BaseAddress;
+ *lphModule++ = iter.LdrModule.BaseAddress;
cb -= sizeof(HMODULE);
}
*lpcbNeeded += sizeof(HMODULE);
More information about the wine-cvs
mailing list