Commit 63d2d041 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

imm32: Remember to unset the hwnd for a context when that hwnd is associated…

imm32: Remember to unset the hwnd for a context when that hwnd is associated with a different context.
parent 76682410
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment