Module: wine Branch: master Commit: 422ee56c1b1f489d3a7a7aab97950ee93cc91549 URL: https://gitlab.winehq.org/wine/wine/-/commit/422ee56c1b1f489d3a7a7aab97950ee...
Author: Rémi Bernon rbernon@codeweavers.com Date: Mon Apr 17 10:08:58 2023 +0200
imm32: Forward ImmGetContext to NtUserGetWindowInputContext directly.
---
dlls/imm32/imm.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-)
diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c index 0bd71244203..5a32138561c 100644 --- a/dlls/imm32/imm.c +++ b/dlls/imm32/imm.c @@ -1776,23 +1776,10 @@ BOOL WINAPI ImmGetCompositionWindow( HIMC himc, COMPOSITIONFORM *composition ) * ImmGetContext (IMM32.@) * */ -HIMC WINAPI ImmGetContext(HWND hWnd) +HIMC WINAPI ImmGetContext( HWND hwnd ) { - HIMC rc; - - TRACE("%p\n", hWnd); - - rc = NtUserGetWindowInputContext(hWnd); - - if (rc) - { - struct imc *data = get_imc_data( rc ); - if (!data) rc = 0; - } - - TRACE("returning %p\n", rc); - - return rc; + TRACE( "hwnd %p\n", hwnd ); + return NtUserGetWindowInputContext( hwnd ); }
/***********************************************************************