Module: wine Branch: master Commit: 63d2d041d9bd93f0206b984ad49024b6d6eb0cbd URL: http://source.winehq.org/git/wine.git/?a=commit;h=63d2d041d9bd93f0206b984ad4...
Author: Aric Stewart aric@codeweavers.com Date: Fri Apr 11 07:42:24 2008 -0500
imm32: Remember to unset the hwnd for a context when that hwnd is associated with a different context.
---
dlls/imm32/imm.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c index 000052c..3ff2228 100644 --- a/dlls/imm32/imm.c +++ b/dlls/imm32/imm.c @@ -383,6 +383,13 @@ HIMC WINAPI ImmAssociateContext(HWND hWnd, HIMC hIMC) else SetPropW(hWnd,szwWineIMCProperty,(HANDLE)hIMC); } + + if (old) + { + InputContextData *old_data = (InputContextData*)old; + if (old_data->IMC.hWnd == hWnd) + old_data->IMC.hWnd = NULL; + } }
if (!hIMC)