From c238b554b19e685bcb50d8d947968ada581320a5 Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Mon, 5 Jul 2021 21:20:20 +0900 Subject: [PATCH] [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)