kernel32: Implement the FALSE pathway of GetCurrentConsoleFont.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
bc7809c258
commit
a9277a9c34
|
@ -3235,12 +3235,31 @@ BOOL WINAPI SetConsoleIcon(HICON icon)
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL WINAPI GetCurrentConsoleFont(HANDLE hConsole, BOOL maxwindow, LPCONSOLE_FONT_INFO fontinfo)
|
BOOL WINAPI GetCurrentConsoleFont(HANDLE hConsole, BOOL maxwindow, LPCONSOLE_FONT_INFO fontinfo)
|
||||||
|
{
|
||||||
|
BOOL ret;
|
||||||
|
|
||||||
|
memset(fontinfo, 0, sizeof(CONSOLE_FONT_INFO));
|
||||||
|
|
||||||
|
if (maxwindow)
|
||||||
{
|
{
|
||||||
FIXME(": (%p, %d, %p) stub!\n", hConsole, maxwindow, fontinfo);
|
FIXME(": (%p, %d, %p) stub!\n", hConsole, maxwindow, fontinfo);
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SERVER_START_REQ(get_console_output_info)
|
||||||
|
{
|
||||||
|
req->handle = console_handle_unmap(hConsole);
|
||||||
|
if ((ret = !wine_server_call_err(req)))
|
||||||
|
{
|
||||||
|
fontinfo->dwFontSize.X = reply->win_right - reply->win_left + 1;
|
||||||
|
fontinfo->dwFontSize.Y = reply->win_bottom - reply->win_top + 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
SERVER_END_REQ;
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef __i386__
|
#ifdef __i386__
|
||||||
#undef GetConsoleFontSize
|
#undef GetConsoleFontSize
|
||||||
DWORD WINAPI GetConsoleFontSize(HANDLE hConsole, DWORD font)
|
DWORD WINAPI GetConsoleFontSize(HANDLE hConsole, DWORD font)
|
||||||
|
|
Loading…
Reference in New Issue