mirror of
https://github.com/reactos/reactos.git
synced 2024-12-31 19:42:51 +00:00
[IMM32] Minor fix of ImmSetCompositionWindow
CORE-11700
This commit is contained in:
parent
b086f910d8
commit
2865423abe
1 changed files with 7 additions and 2 deletions
|
@ -1468,19 +1468,24 @@ BOOL WINAPI ImmGetCompositionWindow(HIMC hIMC, LPCOMPOSITIONFORM lpCompForm)
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI ImmSetCompositionWindow(HIMC hIMC, LPCOMPOSITIONFORM lpCompForm)
|
BOOL WINAPI ImmSetCompositionWindow(HIMC hIMC, LPCOMPOSITIONFORM lpCompForm)
|
||||||
{
|
{
|
||||||
LPINPUTCONTEXT pIC;
|
LPINPUTCONTEXTDX pIC;
|
||||||
HWND hWnd;
|
HWND hWnd;
|
||||||
|
|
||||||
if (Imm32IsCrossThreadAccess(hIMC))
|
if (Imm32IsCrossThreadAccess(hIMC))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
pIC = ImmLockIMC(hIMC);
|
pIC = (LPINPUTCONTEXTDX)ImmLockIMC(hIMC);
|
||||||
if (pIC == NULL)
|
if (pIC == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
pIC->cfCompForm = *lpCompForm;
|
pIC->cfCompForm = *lpCompForm;
|
||||||
pIC->fdwInit |= INIT_COMPFORM;
|
pIC->fdwInit |= INIT_COMPFORM;
|
||||||
|
|
||||||
|
if (pIC->dwUIFlags & 0x8)
|
||||||
|
pIC->dwUIFlags &= ~0x8;
|
||||||
|
else
|
||||||
|
pIC->dwUIFlags &= ~0x2;
|
||||||
|
|
||||||
hWnd = pIC->hWnd;
|
hWnd = pIC->hWnd;
|
||||||
|
|
||||||
ImmUnlockIMC(hIMC);
|
ImmUnlockIMC(hIMC);
|
||||||
|
|
Loading…
Reference in a new issue