ByeongSik Jeon : imm32: More implementation of the ImmGetConversionStatus() .

Alexandre Julliard julliard at winehq.org
Wed Apr 23 07:59:46 CDT 2008


Module: wine
Branch: master
Commit: a720292bac0c27bb97fd64ebe1b35569f0f02c8c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a720292bac0c27bb97fd64ebe1b35569f0f02c8c

Author: ByeongSik Jeon <bsjeon at hanmail.net>
Date:   Wed Apr 23 19:05:46 2008 +0900

imm32: More implementation of the ImmGetConversionStatus().

Match the ImmSetConversionStatus() function.

---

 dlls/imm32/imm.c |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c
index 9a46ef5..04b0d77 100644
--- a/dlls/imm32/imm.c
+++ b/dlls/imm32/imm.c
@@ -1095,11 +1095,18 @@ DWORD WINAPI ImmGetConversionListW(
 BOOL WINAPI ImmGetConversionStatus(
   HIMC hIMC, LPDWORD lpfdwConversion, LPDWORD lpfdwSentence)
 {
-    TRACE("(%p, %p, %p): best guess\n", hIMC, lpfdwConversion, lpfdwSentence);
+    InputContextData *data = (InputContextData*)hIMC;
+
+    TRACE("%p %p %p\n", hIMC, lpfdwConversion, lpfdwSentence);
+
+    if (!data)
+        return FALSE;
+
     if (lpfdwConversion)
-        *lpfdwConversion = IME_CMODE_NATIVE;
+        *lpfdwConversion = data->IMC.fdwConversion;
     if (lpfdwSentence)
-        *lpfdwSentence = IME_SMODE_NONE;
+        *lpfdwSentence = data->IMC.fdwSentence;
+
     return TRUE;
 }
 




More information about the wine-cvs mailing list