imm32: Stop updating INPUTCONTEXT hWnd member in ImmGetContext.

This commit is contained in:
Byeongsik Jeon 2023-04-17 06:28:41 +09:00 committed by Alexandre Julliard
parent 53ae92fab4
commit 5ef8554ee9
2 changed files with 2 additions and 3 deletions

View file

@ -1787,8 +1787,7 @@ HIMC WINAPI ImmGetContext(HWND hWnd)
if (rc)
{
struct imc *data = get_imc_data( rc );
if (data) data->IMC.hWnd = hWnd;
else rc = 0;
if (!data) rc = 0;
}
TRACE("returning %p\n", rc);

View file

@ -5337,7 +5337,7 @@ static void test_ImmSetActiveContext(void)
ctx->hWnd = (HWND)0xdeadbeef;
ok_eq( himc, ImmGetContext( hwnd ), HIMC, "%p" );
todo_wine ok_eq( (HWND)0xdeadbeef, ctx->hWnd, HWND, "%p" );
ok_eq( (HWND)0xdeadbeef, ctx->hWnd, HWND, "%p" );
ok_ret( 1, ImmReleaseContext( hwnd, himc ) );
ok_ret( 1, ImmUnlockIMC( himc ) );