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:
Francois Gouget 2019-11-14 00:29:58 +01:00 committed by Alexandre Julliard
parent ba4cfbd448
commit da238dc1d1
2 changed files with 3 additions and 3 deletions

View File

@ -1627,7 +1627,7 @@ DWORD WINAPI GetNumberOfConsoleFonts(void)
BOOL WINAPI SetConsoleFont(HANDLE hConsole, DWORD index)
{
FIXME("(%p, %u): stub!\n", hConsole, index);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
SetLastError(LOWORD(E_NOTIMPL) /* win10 1709+ */);
return FALSE;
}

View File

@ -2973,12 +2973,12 @@ static void test_SetConsoleFont(HANDLE std_output)
skip("SetConsoleFont is not implemented\n");
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);
ret = pSetConsoleFont(GetStdHandle(STD_INPUT_HANDLE), 0);
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");
if (!pGetNumberOfConsoleFonts)