Commit 5db7d595 authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32/tests: Use a real console handle in the VerifyConsoleIoHandle test.

parent 6457d14b
......@@ -1085,11 +1085,10 @@ static void test_OpenConsoleW(void)
CloseHandle(ret);
}
static void test_VerifyConsoleIoHandle(void)
static void test_VerifyConsoleIoHandle( HANDLE handle )
{
BOOL ret;
DWORD error;
HANDLE handle;
if (!pVerifyConsoleIoHandle)
{
......@@ -1125,7 +1124,6 @@ static void test_VerifyConsoleIoHandle(void)
ok(!ret, "expected VerifyConsoleIoHandle to fail\n");
ok(error == 0xdeadbeef, "wrong GetLastError() %d\n", error);
handle = GetStdHandle(STD_INPUT_HANDLE);
/* valid handle */
SetLastError(0xdeadbeef);
ret = pVerifyConsoleIoHandle(handle);
......@@ -1221,6 +1219,6 @@ START_TEST(console)
test_GetConsoleProcessList();
test_OpenConsoleW();
test_VerifyConsoleIoHandle();
test_VerifyConsoleIoHandle(hConOut);
test_GetSetStdHandle();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment