imm32: Call the non-Ex Function when no Flags are passed
André Hentschel
nerv at dawncrow.de
Wed Apr 7 12:58:09 CDT 2010
---
dlls/imm32/imm.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c
index 2898e5e..28bbd46 100644
--- a/dlls/imm32/imm.c
+++ b/dlls/imm32/imm.c
@@ -516,12 +516,17 @@ static BOOL CALLBACK _ImmAssociateContextExEnumProc(HWND hwnd, LPARAM lParam)
*/
BOOL WINAPI ImmAssociateContextEx(HWND hWnd, HIMC hIMC, DWORD dwFlags)
{
- TRACE("(%p, %p, %d): stub\n", hWnd, hIMC, dwFlags);
+ TRACE("(%p, %p, 0x%x): stub\n", hWnd, hIMC, dwFlags);
if (!IMM_GetThreadData()->defaultContext)
IMM_GetThreadData()->defaultContext = ImmCreateContext();
- if (dwFlags == IACE_DEFAULT)
+ if (!dwFlags)
+ {
+ ImmAssociateContext(hWnd,hIMC);
+ return TRUE;
+ }
+ else if (dwFlags == IACE_DEFAULT)
{
ImmAssociateContext(hWnd,IMM_GetThreadData()->defaultContext);
return TRUE;
@@ -539,7 +544,7 @@ BOOL WINAPI ImmAssociateContextEx(HWND hWnd, HIMC hIMC, DWORD dwFlags)
}
else
{
- ERR("Unknown dwFlags 0x%x\n",dwFlags);
+ FIXME("Unknown dwFlags 0x%x\n",dwFlags);
return FALSE;
}
}
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list