mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 22:52:58 +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)
|
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;
|
return FALSE;
|
||||||
|
|
||||||
*lpCompForm = data->IMC.cfCompForm;
|
if (pIC->fdwInit & INIT_COMPFORM)
|
||||||
return TRUE;
|
{
|
||||||
|
*lpCompForm = pIC->cfCompForm;
|
||||||
|
ret = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
ImmUnlockIMC(hIMC);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue