mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[IMM32] Rewrite ImmGetCompositionWindow (#3820)
Rewrite ImmGetCompositionWindow function. CORE-11700
This commit is contained in:
parent
1558e6d0b3
commit
192981a1fe
1 changed files with 13 additions and 5 deletions
|
@ -1849,15 +1849,23 @@ LONG WINAPI ImmGetCompositionStringW(
|
|||
*/
|
||||
BOOL WINAPI ImmGetCompositionWindow(HIMC hIMC, LPCOMPOSITIONFORM lpCompForm)
|
||||
{
|
||||
InputContextData *data = get_imc_data(hIMC);
|
||||
LPINPUTCONTEXT pIC;
|
||||
BOOL ret = FALSE;
|
||||
|
||||
TRACE("(%p, %p)\n", hIMC, lpCompForm);
|
||||
TRACE("ImmGetCompositionWindow(%p, %p)\n", hIMC, lpCompForm);
|
||||
|
||||
if (!data)
|
||||
pIC = ImmLockIMC(hIMC);
|
||||
if (!pIC)
|
||||
return FALSE;
|
||||
|
||||
*lpCompForm = data->IMC.cfCompForm;
|
||||
return TRUE;
|
||||
if (pIC->fdwInit & INIT_COMPFORM)
|
||||
{
|
||||
*lpCompForm = pIC->cfCompForm;
|
||||
ret = TRUE;
|
||||
}
|
||||
|
||||
ImmUnlockIMC(hIMC);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
Loading…
Reference in a new issue