Module: wine Branch: master Commit: abe5fda90d918e0efbc0f4e122eee7cf637a2e9c URL: https://source.winehq.org/git/wine.git/?a=commit;h=abe5fda90d918e0efbc0f4e12...
Author: Jacek Caban jacek@codeweavers.com Date: Mon Jul 20 15:38:11 2020 +0200
wineconsole: Use IOCTL_CONDRV_SET_INPUT_INFO in WINECON_SetHistorySize.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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 4e0309f18b..35c2f8e92d 100644 --- a/programs/wineconsole/wineconsole.c +++ b/programs/wineconsole/wineconsole.c @@ -116,17 +116,9 @@ void WINECON_ResizeWithContainer(struct inner_data* data, int width, int height) */ static BOOL WINECON_SetHistorySize(HANDLE hConIn, int size) { - BOOL ret; - - SERVER_START_REQ(set_console_input_info) - { - req->handle = wine_server_obj_handle( hConIn ); - req->mask = SET_CONSOLE_INPUT_INFO_HISTORY_SIZE; - req->history_size = size; - ret = !wine_server_call_err( req ); - } - SERVER_END_REQ; - return ret; + struct condrv_input_info_params params = { SET_CONSOLE_INPUT_INFO_HISTORY_SIZE }; + params.info.history_size = size; + return DeviceIoControl(hConIn, IOCTL_CONDRV_SET_INPUT_INFO, ¶ms, sizeof(params), NULL, 0, NULL, NULL); }
/******************************************************************