From 96c5109a0f1a4b203e2a0575764a2577f5270c52 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 20 Jul 2020 15:38:26 +0200 Subject: [PATCH] wineconsole: Use IOCTL_CONDRV_SET_INPUT_INFO in WINECON_SetEditionMode. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- programs/wineconsole/wineconsole.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/programs/wineconsole/wineconsole.c b/programs/wineconsole/wineconsole.c index 2ad9cc84ee0..1fad63d72c2 100644 --- a/programs/wineconsole/wineconsole.c +++ b/programs/wineconsole/wineconsole.c @@ -173,17 +173,9 @@ BOOL WINECON_GetConsoleTitle(HANDLE hConIn, WCHAR* buffer, size_t len) */ static BOOL WINECON_SetEditionMode(HANDLE hConIn, int edition_mode) { - BOOL ret; - - SERVER_START_REQ( set_console_input_info ) - { - req->handle = wine_server_obj_handle( hConIn ); - req->mask = SET_CONSOLE_INPUT_INFO_EDITION_MODE; - req->edition_mode = edition_mode; - ret = !wine_server_call_err( req ); - } - SERVER_END_REQ; - return ret; + struct condrv_input_info_params params = { SET_CONSOLE_INPUT_INFO_EDITION_MODE }; + params.info.edition_mode = edition_mode; + return DeviceIoControl(hConIn, IOCTL_CONDRV_SET_INPUT_INFO, ¶ms, sizeof(params), NULL, 0, NULL, NULL); } /******************************************************************