https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5c624d40e7b8e13a797f1f...
commit 5c624d40e7b8e13a797f1fd7170504eae0af11d8 Author: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com AuthorDate: Thu Jul 8 14:24:27 2021 +0900 Commit: GitHub noreply@github.com CommitDate: Thu Jul 8 14:24:27 2021 +0900
[IMM32] Rewrite ImmGetOpenStatus (#3804)
- Rewrite ImmGetOpenStatus function. CORE-11700 --- dll/win32/imm32/imm.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
diff --git a/dll/win32/imm32/imm.c b/dll/win32/imm32/imm.c index 75e0c024ead..e26e6872f3c 100644 --- a/dll/win32/imm32/imm.c +++ b/dll/win32/imm32/imm.c @@ -1973,6 +1973,24 @@ UINT WINAPI ImmGetIMEFileNameW(HKL hKL, LPWSTR lpszFileName, UINT uBufLen) */ BOOL WINAPI ImmGetOpenStatus(HIMC hIMC) { +#ifdef __REACTOS__ + BOOL ret; + LPINPUTCONTEXT pIC; + + TRACE("ImmGetOpenStatus(%p)\n", hIMC); + + if (!hIMC) + return FALSE; + + pIC = ImmLockIMC(hIMC); + if (!pIC) + return FALSE; + + ret = pIC->fOpen; + + ImmUnlockIMC(hIMC); + return ret; +#else InputContextData *data = get_imc_data(hIMC); static int i;
@@ -1985,6 +2003,7 @@ BOOL WINAPI ImmGetOpenStatus(HIMC hIMC) FIXME("(%p): semi-stub\n", hIMC);
return data->IMC.fOpen; +#endif }
/***********************************************************************