imm32: Remove some superfluous casts.

This commit is contained in:
Michael Stefaniuc 2008-12-01 17:24:40 +01:00 committed by Alexandre Julliard
parent a4bf5c0d2c
commit d5b1874b6c
1 changed files with 7 additions and 7 deletions

View File

@ -423,7 +423,7 @@ static HIMCC ImmCreateBlankCompStr(void)
HIMCC rc; HIMCC rc;
LPCOMPOSITIONSTRING ptr; LPCOMPOSITIONSTRING ptr;
rc = ImmCreateIMCC(sizeof(COMPOSITIONSTRING)); rc = ImmCreateIMCC(sizeof(COMPOSITIONSTRING));
ptr = (LPCOMPOSITIONSTRING)ImmLockIMCC(rc); ptr = ImmLockIMCC(rc);
memset(ptr,0,sizeof(COMPOSITIONSTRING)); memset(ptr,0,sizeof(COMPOSITIONSTRING));
ptr->dwSize = sizeof(COMPOSITIONSTRING); ptr->dwSize = sizeof(COMPOSITIONSTRING);
ImmUnlockIMCC(rc); ImmUnlockIMCC(rc);
@ -451,7 +451,7 @@ HIMC WINAPI ImmAssociateContext(HWND hWnd, HIMC hIMC)
if (hWnd) if (hWnd)
{ {
old = (HIMC)RemovePropW(hWnd,szwWineIMCProperty); old = RemovePropW(hWnd,szwWineIMCProperty);
if (old == NULL) if (old == NULL)
old = IMM_GetThreadData()->defaultContext; old = IMM_GetThreadData()->defaultContext;
@ -463,7 +463,7 @@ HIMC WINAPI ImmAssociateContext(HWND hWnd, HIMC hIMC)
if (hIMC == NULL) /* Meaning disable imm for that window*/ if (hIMC == NULL) /* Meaning disable imm for that window*/
SetPropW(hWnd,szwWineIMCProperty,(HANDLE)-1); SetPropW(hWnd,szwWineIMCProperty,(HANDLE)-1);
else else
SetPropW(hWnd,szwWineIMCProperty,(HANDLE)hIMC); SetPropW(hWnd,szwWineIMCProperty,hIMC);
} }
if (old) if (old)
@ -626,7 +626,7 @@ HIMC WINAPI ImmCreateContext(void)
new_context->immKbd->uSelected++; new_context->immKbd->uSelected++;
TRACE("Created context 0x%x\n",(UINT)new_context); TRACE("Created context 0x%x\n",(UINT)new_context);
return (HIMC)new_context; return new_context;
} }
static BOOL IMM_DestroyContext(HIMC hIMC) static BOOL IMM_DestroyContext(HIMC hIMC)
@ -1298,7 +1298,7 @@ HIMC WINAPI ImmGetContext(HWND hWnd)
if (!IMM_GetThreadData()->defaultContext) if (!IMM_GetThreadData()->defaultContext)
IMM_GetThreadData()->defaultContext = ImmCreateContext(); IMM_GetThreadData()->defaultContext = ImmCreateContext();
rc = (HIMC)GetPropW(hWnd,szwWineIMCProperty); rc = GetPropW(hWnd,szwWineIMCProperty);
if (rc == (HIMC)-1) if (rc == (HIMC)-1)
rc = NULL; rc = NULL;
else if (rc == NULL) else if (rc == NULL)
@ -2531,7 +2531,7 @@ HIMCC WINAPI ImmCreateIMCC(DWORD size)
return NULL; return NULL;
internal->dwSize = size; internal->dwSize = size;
return (HIMCC)internal; return internal;
} }
/*********************************************************************** /***********************************************************************
@ -2618,7 +2618,7 @@ BOOL WINAPI ImmGenerateMessage(HIMC hIMC)
LPTRANSMSG lpTransMsg; LPTRANSMSG lpTransMsg;
DWORD i; DWORD i;
lpTransMsg = (LPTRANSMSG)ImmLockIMCC(data->IMC.hMsgBuf); lpTransMsg = ImmLockIMCC(data->IMC.hMsgBuf);
for (i = 0; i < data->IMC.dwNumMsgBuf; i++) for (i = 0; i < data->IMC.dwNumMsgBuf; i++)
ImmInternalPostIMEMessage(data, lpTransMsg[i].message, lpTransMsg[i].wParam, lpTransMsg[i].lParam); ImmInternalPostIMEMessage(data, lpTransMsg[i].message, lpTransMsg[i].wParam, lpTransMsg[i].lParam);