Commit f7a7633a authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

kernelbase: Use IOCTL_CONDRV_SET_OUTPUT_INFO in SetConsoleScreenBufferSize.

parent b21d2e5f
......@@ -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 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment