mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[IMM32] Rewrite ImmGetOpenStatus (#3804)
- Rewrite ImmGetOpenStatus function. CORE-11700
This commit is contained in:
parent
211de1257e
commit
5c624d40e7
1 changed files with 19 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
Loading…
Reference in a new issue