mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +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)
|
||||
{
|
||||
LPINPUTCONTEXT pIC;
|
||||
LPINPUTCONTEXTDX pIC;
|
||||
HWND hWnd;
|
||||
|
||||
if (Imm32IsCrossThreadAccess(hIMC))
|
||||
return FALSE;
|
||||
|
||||
pIC = ImmLockIMC(hIMC);
|
||||
pIC = (LPINPUTCONTEXTDX)ImmLockIMC(hIMC);
|
||||
if (pIC == NULL)
|
||||
return FALSE;
|
||||
|
||||
pIC->cfCompForm = *lpCompForm;
|
||||
pIC->fdwInit |= INIT_COMPFORM;
|
||||
|
||||
if (pIC->dwUIFlags & 0x8)
|
||||
pIC->dwUIFlags &= ~0x8;
|
||||
else
|
||||
pIC->dwUIFlags &= ~0x2;
|
||||
|
||||
hWnd = pIC->hWnd;
|
||||
|
||||
ImmUnlockIMC(hIMC);
|
||||
|
|
Loading…
Reference in a new issue