kernel32: Fix two failing tests in win95.

This commit is contained in:
James Hawkins 2008-08-28 21:14:47 -05:00 committed by Alexandre Julliard
parent 39732cf927
commit 806edcc496
1 changed files with 4 additions and 2 deletions

View File

@ -1180,13 +1180,15 @@ static void test_Console(void)
/* Try to set invalid CP */ /* Try to set invalid CP */
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
ok(!SetConsoleCP(0), "Shouldn't succeed\n"); ok(!SetConsoleCP(0), "Shouldn't succeed\n");
ok(GetLastError()==ERROR_INVALID_PARAMETER, ok(GetLastError()==ERROR_INVALID_PARAMETER ||
broken(GetLastError() == ERROR_CALL_NOT_IMPLEMENTED), /* win95 */
"GetLastError: expecting %u got %u\n", "GetLastError: expecting %u got %u\n",
ERROR_INVALID_PARAMETER, GetLastError()); ERROR_INVALID_PARAMETER, GetLastError());
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
ok(!SetConsoleOutputCP(0), "Shouldn't succeed\n"); ok(!SetConsoleOutputCP(0), "Shouldn't succeed\n");
ok(GetLastError()==ERROR_INVALID_PARAMETER, ok(GetLastError()==ERROR_INVALID_PARAMETER ||
broken(GetLastError() == ERROR_CALL_NOT_IMPLEMENTED), /* win95 */
"GetLastError: expecting %u got %u\n", "GetLastError: expecting %u got %u\n",
ERROR_INVALID_PARAMETER, GetLastError()); ERROR_INVALID_PARAMETER, GetLastError());