https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c238b554b19e685bcb50d…
commit c238b554b19e685bcb50d8d947968ada581320a5
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Mon Jul 5 21:20:20 2021 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Mon Jul 5 21:20:20 2021 +0900
[IMM32] Rewrite ImmGetConversionStatus (#3790)
Implementing Japanese input... CORE-11700
---
dll/win32/imm32/imm.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/dll/win32/imm32/imm.c b/dll/win32/imm32/imm.c
index ca026d473f0..5bdd37a031a 100644
--- a/dll/win32/imm32/imm.c
+++ b/dll/win32/imm32/imm.c
@@ -1641,6 +1641,23 @@ DWORD WINAPI ImmGetConversionListW(
BOOL WINAPI ImmGetConversionStatus(
HIMC hIMC, LPDWORD lpfdwConversion, LPDWORD lpfdwSentence)
{
+#ifdef __REACTOS__
+ LPINPUTCONTEXT pIC;
+
+ TRACE("ImmGetConversionStatus(%p %p %p)\n", hIMC, lpfdwConversion,
lpfdwSentence);
+
+ pIC = ImmLockIMC(hIMC);
+ if (!pIC)
+ return FALSE;
+
+ if (lpfdwConversion)
+ *lpfdwConversion = pIC->fdwConversion;
+ if (lpfdwSentence)
+ *lpfdwSentence = pIC->fdwSentence;
+
+ ImmUnlockIMC(hIMC);
+ return TRUE;
+#else
InputContextData *data = get_imc_data(hIMC);
TRACE("%p %p %p\n", hIMC, lpfdwConversion, lpfdwSentence);
@@ -1654,6 +1671,7 @@ BOOL WINAPI ImmGetConversionStatus(
*lpfdwSentence = data->IMC.fdwSentence;
return TRUE;
+#endif
}
static BOOL needs_ime_window(HWND hwnd)