imm32: Fix some return codes.

This commit is contained in:
Mike McCormack 2006-06-19 16:57:59 +09:00 committed by Alexandre Julliard
parent 39c905f6d0
commit da906667c7
1 changed files with 5 additions and 5 deletions

View File

@ -209,10 +209,10 @@ HIMC WINAPI ImmAssociateContext(HWND hWnd, HIMC hIMC)
{
InputContextData *data = (InputContextData*)hIMC;
WARN("(%p, %p): semi-stub\n",hWnd,hIMC);
WARN("(%p, %p): semi-stub\n", hWnd, hIMC);
if (!data)
return FALSE;
if (!hIMC)
return NULL;
/*
* WINE SPECIFIC! MAY CONFLICT
@ -227,7 +227,7 @@ HIMC WINAPI ImmAssociateContext(HWND hWnd, HIMC hIMC)
* If already associated just return
*/
if (data->hwnd == hWnd)
return (HIMC)data;
return hIMC;
if (IsWindow(data->hwnd))
{
@ -251,7 +251,7 @@ HIMC WINAPI ImmAssociateContext(HWND hWnd, HIMC hIMC)
* TODO: We need to keep track of the old context associated
* with a window and return it for now we will return NULL;
*/
return (HIMC)NULL;
return NULL;
}
/***********************************************************************