kernelbase: Use IOCTL_CONDRV_SET_OUTPUT_INFO in SetConsoleScreenBufferSize.

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-10 17:07:35 +02:00 committed by Alexandre Julliard
parent b21d2e5f58
commit f7a7633aa1
1 changed files with 5 additions and 11 deletions

View File

@ -1357,19 +1357,13 @@ BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleScreenBufferInfoEx( HANDLE handle,
*/
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleScreenBufferSize( HANDLE handle, COORD size )
{
BOOL ret;
struct condrv_output_info_params params = { SET_CONSOLE_OUTPUT_INFO_SIZE };
TRACE( "(%p,(%d,%d))\n", handle, size.X, size.Y );
SERVER_START_REQ( set_console_output_info )
{
req->handle = console_handle_unmap( handle );
req->width = size.X;
req->height = size.Y;
req->mask = SET_CONSOLE_OUTPUT_INFO_SIZE;
ret = !wine_server_call_err( req );
}
SERVER_END_REQ;
return ret;
params.info.width = size.X;
params.info.height = size.Y;
return console_ioctl( handle, IOCTL_CONDRV_SET_OUTPUT_INFO, &params, sizeof(params), NULL, 0, NULL );
}