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

Alexandre Julliard julliard at winehq.org
Wed Sep 29 12:00:19 CDT 2010


Module: wine
Branch: master
Commit: 5db7d5957ad9898f120772bbfd15ea0b6d1a444c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5db7d5957ad9898f120772bbfd15ea0b6d1a444c

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Sep 29 11:57:42 2010 +0200

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

---

 dlls/kernel32/tests/console.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/kernel32/tests/console.c b/dlls/kernel32/tests/console.c
index 072bd01..2f8cf84 100644
--- a/dlls/kernel32/tests/console.c
+++ b/dlls/kernel32/tests/console.c
@@ -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();
 }




More information about the wine-cvs mailing list