imm32: Remember to unset the hwnd for a context when that hwnd is associated with a different context.

This commit is contained in:
Aric Stewart 2008-04-11 07:42:24 -05:00 committed by Alexandre Julliard
parent 7668241015
commit 63d2d041d9
1 changed files with 7 additions and 0 deletions

View File

@ -383,6 +383,13 @@ HIMC WINAPI ImmAssociateContext(HWND hWnd, HIMC hIMC)
else else
SetPropW(hWnd,szwWineIMCProperty,(HANDLE)hIMC); 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) if (!hIMC)