Commit 0c3c89b7 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

kernel32: Use IOCTL_CONDRV_GET_OUTPUT_INFO in get_console_font_size.

parent af3320c5
......@@ -1391,6 +1391,7 @@ BOOL WINAPI GetCurrentConsoleFont(HANDLE hConsole, BOOL maxwindow, CONSOLE_FONT_
static COORD get_console_font_size(HANDLE hConsole, DWORD index)
{
struct condrv_output_info info;
COORD c = {0,0};
if (index >= GetNumberOfConsoleFonts())
......@@ -1399,16 +1400,12 @@ static COORD get_console_font_size(HANDLE hConsole, DWORD index)
return c;
}
SERVER_START_REQ(get_console_output_info)
if (DeviceIoControl( hConsole, IOCTL_CONDRV_GET_OUTPUT_INFO, NULL, 0, &info, sizeof(info), NULL, NULL ))
{
req->handle = console_handle_unmap(hConsole);
if (!wine_server_call_err(req))
{
c.X = reply->font_width;
c.Y = reply->font_height;
}
c.X = info.font_width;
c.Y = info.font_height;
}
SERVER_END_REQ;
else SetLastError( ERROR_INVALID_HANDLE );
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