https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2865423abedb2fee272b3…
commit 2865423abedb2fee272b387e50eae913bcad517f
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Fri Oct 21 11:29:47 2022 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Fri Oct 21 11:29:47 2022 +0900
[IMM32] Minor fix of ImmSetCompositionWindow
CORE-11700
---
dll/win32/imm32/ime.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/dll/win32/imm32/ime.c b/dll/win32/imm32/ime.c
index 5dbddca417e..0fc3494d9d0 100644
--- a/dll/win32/imm32/ime.c
+++ b/dll/win32/imm32/ime.c
@@ -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);