Michael Stefaniuc : imm32: Remove some superfluous casts.
Alexandre Julliard
julliard at winehq.org
Tue Dec 2 11:01:57 CST 2008
Module: wine
Branch: master
Commit: d5b1874b6cc68c9e0031fb6ca1db7964a81c9673
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d5b1874b6cc68c9e0031fb6ca1db7964a81c9673
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Mon Dec 1 17:24:40 2008 +0100
imm32: Remove some superfluous casts.
---
dlls/imm32/imm.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c
index 3ed6411..3b7f7a4 100644
--- a/dlls/imm32/imm.c
+++ b/dlls/imm32/imm.c
@@ -423,7 +423,7 @@ static HIMCC ImmCreateBlankCompStr(void)
HIMCC rc;
LPCOMPOSITIONSTRING ptr;
rc = ImmCreateIMCC(sizeof(COMPOSITIONSTRING));
- ptr = (LPCOMPOSITIONSTRING)ImmLockIMCC(rc);
+ ptr = ImmLockIMCC(rc);
memset(ptr,0,sizeof(COMPOSITIONSTRING));
ptr->dwSize = sizeof(COMPOSITIONSTRING);
ImmUnlockIMCC(rc);
@@ -451,7 +451,7 @@ HIMC WINAPI ImmAssociateContext(HWND hWnd, HIMC hIMC)
if (hWnd)
{
- old = (HIMC)RemovePropW(hWnd,szwWineIMCProperty);
+ old = RemovePropW(hWnd,szwWineIMCProperty);
if (old == NULL)
old = IMM_GetThreadData()->defaultContext;
@@ -463,7 +463,7 @@ HIMC WINAPI ImmAssociateContext(HWND hWnd, HIMC hIMC)
if (hIMC == NULL) /* Meaning disable imm for that window*/
SetPropW(hWnd,szwWineIMCProperty,(HANDLE)-1);
else
- SetPropW(hWnd,szwWineIMCProperty,(HANDLE)hIMC);
+ SetPropW(hWnd,szwWineIMCProperty,hIMC);
}
if (old)
@@ -626,7 +626,7 @@ HIMC WINAPI ImmCreateContext(void)
new_context->immKbd->uSelected++;
TRACE("Created context 0x%x\n",(UINT)new_context);
- return (HIMC)new_context;
+ return new_context;
}
static BOOL IMM_DestroyContext(HIMC hIMC)
@@ -1298,7 +1298,7 @@ HIMC WINAPI ImmGetContext(HWND hWnd)
if (!IMM_GetThreadData()->defaultContext)
IMM_GetThreadData()->defaultContext = ImmCreateContext();
- rc = (HIMC)GetPropW(hWnd,szwWineIMCProperty);
+ rc = GetPropW(hWnd,szwWineIMCProperty);
if (rc == (HIMC)-1)
rc = NULL;
else if (rc == NULL)
@@ -2531,7 +2531,7 @@ HIMCC WINAPI ImmCreateIMCC(DWORD size)
return NULL;
internal->dwSize = size;
- return (HIMCC)internal;
+ return internal;
}
/***********************************************************************
@@ -2618,7 +2618,7 @@ BOOL WINAPI ImmGenerateMessage(HIMC hIMC)
LPTRANSMSG lpTransMsg;
DWORD i;
- lpTransMsg = (LPTRANSMSG)ImmLockIMCC(data->IMC.hMsgBuf);
+ lpTransMsg = ImmLockIMCC(data->IMC.hMsgBuf);
for (i = 0; i < data->IMC.dwNumMsgBuf; i++)
ImmInternalPostIMEMessage(data, lpTransMsg[i].message, lpTransMsg[i].wParam, lpTransMsg[i].lParam);
More information about the wine-cvs
mailing list