imm32: Stop updating INPUTCONTEXT hWnd member in ImmGetContext.
This commit is contained in:
parent
53ae92fab4
commit
5ef8554ee9
2 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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 ) );
|
||||
|
|
Loading…
Add table
Reference in a new issue