[IMM32] Rewrite ImmGetConversionStatus (#3790)

Implementing Japanese input... CORE-11700
This commit is contained in:
Katayama Hirofumi MZ 2021-07-05 21:20:20 +09:00 committed by GitHub
parent 6b0cdceda0
commit c238b554b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1641,6 +1641,23 @@ DWORD WINAPI ImmGetConversionListW(
BOOL WINAPI ImmGetConversionStatus( BOOL WINAPI ImmGetConversionStatus(
HIMC hIMC, LPDWORD lpfdwConversion, LPDWORD lpfdwSentence) 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); InputContextData *data = get_imc_data(hIMC);
TRACE("%p %p %p\n", hIMC, lpfdwConversion, lpfdwSentence); TRACE("%p %p %p\n", hIMC, lpfdwConversion, lpfdwSentence);
@ -1654,6 +1671,7 @@ BOOL WINAPI ImmGetConversionStatus(
*lpfdwSentence = data->IMC.fdwSentence; *lpfdwSentence = data->IMC.fdwSentence;
return TRUE; return TRUE;
#endif
} }
static BOOL needs_ime_window(HWND hwnd) static BOOL needs_ime_window(HWND hwnd)