Commit 93e5d7b3 authored by Byeong-Sik Jeon's avatar Byeong-Sik Jeon Committed by Alexandre Julliard

imm32: Avoid updating INPUTCONTEXT hWnd on ImmSetActiveContext deactivation.

parent 422ee56c
......@@ -852,7 +852,7 @@ BOOL WINAPI ImmSetActiveContext(HWND hwnd, HIMC himc, BOOL activate)
if (data)
{
data->IMC.hWnd = activate ? hwnd : NULL;
if (activate) data->IMC.hWnd = hwnd;
if ((ime = imc_select_ime( data ))) ime->pImeSetActiveContext( himc, activate );
}
......
......@@ -5314,7 +5314,7 @@ static void test_ImmSetActiveContext(void)
ctx->hWnd = (HWND)0xdeadbeef;
ok_ret( 1, ImmSetActiveContext( hwnd, himc, FALSE ) );
todo_wine ok_eq( (HWND)0xdeadbeef, ctx->hWnd, HWND, "%p" );
ok_eq( (HWND)0xdeadbeef, ctx->hWnd, HWND, "%p" );
deactivate_2_seq[0].himc = himc;
ok_seq( deactivate_2_seq );
......
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