Paul Vriens : user32/tests: Fix timeouts on Win9x/WinMe.

Alexandre Julliard julliard at winehq.org
Fri Mar 19 11:16:38 CDT 2010


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Fri Mar 19 10:03:58 2010 +0100

user32/tests: Fix timeouts on Win9x/WinMe.

---

 dlls/user32/tests/win.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index 9793af2..af0fa49 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -2505,7 +2505,7 @@ static void test_SetForegroundWindow(HWND hwnd)
 {
     struct create_window_thread_params thread_params;
     HANDLE thread;
-    DWORD res;
+    DWORD res, tid;
     BOOL ret;
     HWND hwnd2;
     MSG msg;
@@ -2589,7 +2589,7 @@ static void test_SetForegroundWindow(HWND hwnd)
     ok(!!thread_params.window_created, "CreateEvent failed, last error %#x.\n", GetLastError());
     thread_params.test_finished = CreateEvent(NULL, FALSE, FALSE, NULL);
     ok(!!thread_params.test_finished, "CreateEvent failed, last error %#x.\n", GetLastError());
-    thread = CreateThread(NULL, 0, create_window_thread, &thread_params, 0, NULL);
+    thread = CreateThread(NULL, 0, create_window_thread, &thread_params, 0, &tid);
     ok(!!thread, "Failed to create thread, last error %#x.\n", GetLastError());
     res = WaitForSingleObject(thread_params.window_created, INFINITE);
     ok(res == WAIT_OBJECT_0, "Wait failed (%#x), last error %#x.\n", res, GetLastError());




More information about the wine-cvs mailing list