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

kernelbase: Use IOCTL_CONDRV_GET_OUTPUT_INFO in GetLargestConsoleWindowSize.

parent 2789787f
......@@ -159,18 +159,17 @@ static void fill_console_output( HANDLE handle, int i, int j, int len, CHAR_INFO
/* helper function for GetLargestConsoleWindowSize */
static COORD get_largest_console_window_size( HANDLE handle )
{
struct condrv_output_info info;
COORD c = { 0, 0 };
SERVER_START_REQ( get_console_output_info )
if (!DeviceIoControl( handle, IOCTL_CONDRV_GET_OUTPUT_INFO, NULL, 0, &info, sizeof(info), NULL, NULL ))
{
req->handle = console_handle_unmap( handle );
if (!wine_server_call_err( req ))
{
c.X = reply->max_width;
c.Y = reply->max_height;
}
SetLastError( ERROR_INVALID_HANDLE );
return c;
}
SERVER_END_REQ;
c.X = info.max_width;
c.Y = info.max_height;
TRACE( "(%p), returning %dx%d\n", handle, c.X, c.Y );
return c;
}
......
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