Piotr Caban : imm32: Use IMM context keyboard layout when possible.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Aug 12 09:17:54 CDT 2015
Module: wine
Branch: master
Commit: 9e099828470eb3c74302260a7e1aa004ac6c7583
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9e099828470eb3c74302260a7e1aa004ac6c7583
Author: Piotr Caban <piotr at codeweavers.com>
Date: Tue Aug 11 20:45:31 2015 +0200
imm32: Use IMM context keyboard layout when possible.
---
dlls/imm32/imm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c
index c4b44e4..3629024 100644
--- a/dlls/imm32/imm.c
+++ b/dlls/imm32/imm.c
@@ -763,7 +763,7 @@ HIMC WINAPI ImmCreateContext(void)
return 0;
}
new_context->threadID = GetCurrentThreadId();
- SendMessageW(GetFocus(), WM_IME_SELECT, TRUE, (LPARAM)GetKeyboardLayout(0));
+ SendMessageW(GetFocus(), WM_IME_SELECT, TRUE, (LPARAM)new_context->immKbd);
new_context->immKbd->uSelected++;
TRACE("Created context %p\n",new_context);
@@ -783,7 +783,7 @@ static BOOL IMM_DestroyContext(HIMC hIMC)
data->immKbd->uSelected --;
data->immKbd->pImeSelect(hIMC, FALSE);
- SendMessageW(data->IMC.hWnd, WM_IME_SELECT, FALSE, (LPARAM)GetKeyboardLayout(0));
+ SendMessageW(data->IMC.hWnd, WM_IME_SELECT, FALSE, (LPARAM)data->immKbd);
ImmDestroyIMCC(data->IMC.hCompStr);
ImmDestroyIMCC(data->IMC.hCandInfo);
More information about the wine-cvs
mailing list