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>
This commit is contained in:
Jacek Caban 2020-07-20 15:38:11 +02:00 committed by Alexandre Julliard
parent dcd02876ea
commit abe5fda90d
1 changed files with 3 additions and 11 deletions

View File

@ -116,17 +116,9 @@ void WINECON_ResizeWithContainer(struct inner_data* data, int width, int height)
*/ */
static BOOL WINECON_SetHistorySize(HANDLE hConIn, int size) static BOOL WINECON_SetHistorySize(HANDLE hConIn, int size)
{ {
BOOL ret; struct condrv_input_info_params params = { SET_CONSOLE_INPUT_INFO_HISTORY_SIZE };
params.info.history_size = size;
SERVER_START_REQ(set_console_input_info) return DeviceIoControl(hConIn, IOCTL_CONDRV_SET_INPUT_INFO, &params, sizeof(params), NULL, 0, NULL, NULL);
{
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;
} }
/****************************************************************** /******************************************************************