Module: wine Branch: refs/heads/master Commit: da906667c7785e0739ed7d0cded67ff71833fbba URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=da906667c7785e0739ed7d0c...
Author: Mike McCormack mike@codeweavers.com Date: Mon Jun 19 16:57:59 2006 +0900
imm32: Fix some return codes.
---
dlls/imm32/imm.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c index b78e2cc..d6fce6c 100644 --- a/dlls/imm32/imm.c +++ b/dlls/imm32/imm.c @@ -209,10 +209,10 @@ HIMC WINAPI ImmAssociateContext(HWND hWn { 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 hWn * 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 hWn * 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; }
/***********************************************************************