mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 20:28:26 +00:00
kernel32: Match the Windows 10 1709+ SetConsoleFont() implementation.
That is return the same 'E_NOTIMPL' error code. Remove the todo_wine-s but keep the tests in case we want to implement the API for compatibility with old Windows versions. Signed-off-by: Francois Gouget <fgouget@free.fr> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ba4cfbd448
commit
da238dc1d1
|
@ -1627,7 +1627,7 @@ DWORD WINAPI GetNumberOfConsoleFonts(void)
|
||||||
BOOL WINAPI SetConsoleFont(HANDLE hConsole, DWORD index)
|
BOOL WINAPI SetConsoleFont(HANDLE hConsole, DWORD index)
|
||||||
{
|
{
|
||||||
FIXME("(%p, %u): stub!\n", hConsole, index);
|
FIXME("(%p, %u): stub!\n", hConsole, index);
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
SetLastError(LOWORD(E_NOTIMPL) /* win10 1709+ */);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2973,12 +2973,12 @@ static void test_SetConsoleFont(HANDLE std_output)
|
||||||
skip("SetConsoleFont is not implemented\n");
|
skip("SetConsoleFont is not implemented\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
todo_wine ok(GetLastError() == ERROR_INVALID_HANDLE, "got %u, expected 6\n", GetLastError());
|
ok(GetLastError() == ERROR_INVALID_HANDLE, "got %u, expected 6\n", GetLastError());
|
||||||
|
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
ret = pSetConsoleFont(GetStdHandle(STD_INPUT_HANDLE), 0);
|
ret = pSetConsoleFont(GetStdHandle(STD_INPUT_HANDLE), 0);
|
||||||
ok(!ret, "got %d, expected zero\n", ret);
|
ok(!ret, "got %d, expected zero\n", ret);
|
||||||
todo_wine ok(GetLastError() == ERROR_INVALID_HANDLE, "got %u, expected 6\n", GetLastError());
|
ok(GetLastError() == ERROR_INVALID_HANDLE, "got %u, expected 6\n", GetLastError());
|
||||||
|
|
||||||
pGetNumberOfConsoleFonts = (void *)GetProcAddress(hmod, "GetNumberOfConsoleFonts");
|
pGetNumberOfConsoleFonts = (void *)GetProcAddress(hmod, "GetNumberOfConsoleFonts");
|
||||||
if (!pGetNumberOfConsoleFonts)
|
if (!pGetNumberOfConsoleFonts)
|
||||||
|
|
Loading…
Reference in a new issue