kernel32/tests: Refresh the console to clear the console font table.
The testScreenBuffer function unintentionally causes the console font table to increase from 14 entries to about 40. Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c9364659aa
commit
b36cc985a4
|
@ -2787,6 +2787,17 @@ START_TEST(console)
|
||||||
testScroll(hConOut, sbi.dwSize);
|
testScroll(hConOut, sbi.dwSize);
|
||||||
/* will test sb creation / modification / codepage handling */
|
/* will test sb creation / modification / codepage handling */
|
||||||
testScreenBuffer(hConOut);
|
testScreenBuffer(hConOut);
|
||||||
|
|
||||||
|
/* clear duplicated console font table */
|
||||||
|
CloseHandle(hConIn);
|
||||||
|
CloseHandle(hConOut);
|
||||||
|
FreeConsole();
|
||||||
|
ok(AllocConsole(), "Couldn't alloc console\n");
|
||||||
|
hConIn = CreateFileA("CONIN$", GENERIC_READ|GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, 0);
|
||||||
|
hConOut = CreateFileA("CONOUT$", GENERIC_READ|GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, 0);
|
||||||
|
ok(hConIn != INVALID_HANDLE_VALUE, "Opening ConIn\n");
|
||||||
|
ok(hConOut != INVALID_HANDLE_VALUE, "Opening ConOut\n");
|
||||||
|
|
||||||
testCtrlHandler();
|
testCtrlHandler();
|
||||||
/* still to be done: access rights & access on objects */
|
/* still to be done: access rights & access on objects */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue