kernel32: Skip the screen buffer tests if codepage 866 is not available.

This commit is contained in:
James Hawkins 2008-04-20 02:26:12 -05:00 committed by Alexandre Julliard
parent b8ffcbc35b
commit 430a46fdf7
1 changed files with 6 additions and 0 deletions

View File

@ -600,6 +600,12 @@ static void testScreenBuffer(HANDLE hConOut)
BOOL ret;
DWORD oldcp;
if (!IsValidCodePage(866))
{
skip("Codepage 866 not available\n");
return;
}
/* In the beginning set output codepage to 866 */
oldcp = GetConsoleOutputCP();
ok(SetConsoleOutputCP(866), "Cannot set output codepage to 866\n");