From da906667c7785e0739ed7d0cded67ff71833fbba Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Mon, 19 Jun 2006 16:57:59 +0900 Subject: [PATCH] imm32: Fix some return codes. --- dlls/imm32/imm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c index b78e2ccf095..d6fce6c4aaf 100644 --- a/dlls/imm32/imm.c +++ b/dlls/imm32/imm.c @@ -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; } /***********************************************************************