[IMM32] Rewrite ImmGetOpenStatus (#3804)

- Rewrite ImmGetOpenStatus function. CORE-11700
This commit is contained in:
Katayama Hirofumi MZ 2021-07-08 14:24:27 +09:00 committed by GitHub
parent 211de1257e
commit 5c624d40e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}
/***********************************************************************