Paul Vriens : d3d9/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: a0da7b6d3b9da4b80a54a01bca044753d7f0bb7b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a0da7b6d3b9da4b80a54a01bca044753d7f0bb7b
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Fri Mar 19 10:03:48 2010 +0100
d3d9/tests: Fix timeouts on Win9x/WinMe.
---
dlls/d3d9/tests/device.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/d3d9/tests/device.c b/dlls/d3d9/tests/device.c
index 5ef2910..eb424e2 100644
--- a/dlls/d3d9/tests/device.c
+++ b/dlls/d3d9/tests/device.c
@@ -2388,7 +2388,7 @@ static void test_wndproc(void)
HANDLE thread;
LONG_PTR proc;
ULONG ref;
- DWORD res;
+ DWORD res, tid;
if (!(d3d9 = pDirect3DCreate9(D3D_SDK_VERSION)))
{
@@ -2409,7 +2409,7 @@ static void test_wndproc(void)
WS_MAXIMIZE | WS_VISIBLE | WS_CAPTION, 0, 0, 640, 480, 0, 0, 0, 0);
device_window = CreateWindowA("d3d9_test_wndproc_wc", "d3d9_test",
WS_MAXIMIZE | WS_VISIBLE | WS_CAPTION, 0, 0, 640, 480, 0, 0, 0, 0);
- thread = CreateThread(NULL, 0, wndproc_thread, &thread_params, 0, NULL);
+ thread = CreateThread(NULL, 0, wndproc_thread, &thread_params, 0, &tid);
ok(!!thread, "Failed to create thread, last error %#x.\n", GetLastError());
res = WaitForSingleObject(thread_params.window_created, INFINITE);
@@ -2519,7 +2519,7 @@ static void test_wndproc_windowed(void)
HANDLE thread;
LONG_PTR proc;
ULONG ref;
- DWORD res;
+ DWORD res, tid;
if (!(d3d9 = pDirect3DCreate9(D3D_SDK_VERSION)))
{
@@ -2540,7 +2540,7 @@ static void test_wndproc_windowed(void)
WS_MAXIMIZE | WS_VISIBLE | WS_CAPTION, 0, 0, 640, 480, 0, 0, 0, 0);
device_window = CreateWindowA("d3d9_test_wndproc_wc", "d3d9_test",
WS_MAXIMIZE | WS_VISIBLE | WS_CAPTION, 0, 0, 640, 480, 0, 0, 0, 0);
- thread = CreateThread(NULL, 0, wndproc_thread, &thread_params, 0, NULL);
+ thread = CreateThread(NULL, 0, wndproc_thread, &thread_params, 0, &tid);
ok(!!thread, "Failed to create thread, last error %#x.\n", GetLastError());
res = WaitForSingleObject(thread_params.window_created, INFINITE);
More information about the wine-cvs
mailing list