imm32: Use the same code for ImmIsUIMessageW as in the ascii function

André Hentschel nerv at dawncrow.de
Wed Jun 15 13:55:06 CDT 2011


---
 dlls/imm32/imm.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c
index cc68305..00a7c6a 100644
--- a/dlls/imm32/imm.c
+++ b/dlls/imm32/imm.c
@@ -1923,7 +1923,15 @@ BOOL WINAPI ImmIsUIMessageW(
         (msg == WM_MSIME_RECONVERT) ||
         (msg == WM_MSIME_QUERYPOSITION) ||
         (msg == WM_MSIME_DOCUMENTFEED))
+    {
+        if (!IMM_GetThreadData()->hwndDefault)
+            ImmGetDefaultIMEWnd(NULL);
+
+        if (hWndIME == NULL)
+            PostMessageW(IMM_GetThreadData()->hwndDefault, msg, wParam, lParam);
+
         rc = TRUE;
+    }
     return rc;
 }
 
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list