d3d8/tests: Fix timeouts on Win9x/WinMe.
This commit is contained in:
parent
b774baa35c
commit
dcb62f265d
|
@ -1543,7 +1543,7 @@ static void test_wndproc(void)
|
||||||
HANDLE thread;
|
HANDLE thread;
|
||||||
LONG_PTR proc;
|
LONG_PTR proc;
|
||||||
ULONG ref;
|
ULONG ref;
|
||||||
DWORD res;
|
DWORD res, tid;
|
||||||
|
|
||||||
if (!(d3d8 = pDirect3DCreate8(D3D_SDK_VERSION)))
|
if (!(d3d8 = pDirect3DCreate8(D3D_SDK_VERSION)))
|
||||||
{
|
{
|
||||||
|
@ -1564,7 +1564,7 @@ static void test_wndproc(void)
|
||||||
WS_MAXIMIZE | WS_VISIBLE | WS_CAPTION , 0, 0, 640, 480, 0, 0, 0, 0);
|
WS_MAXIMIZE | WS_VISIBLE | WS_CAPTION , 0, 0, 640, 480, 0, 0, 0, 0);
|
||||||
device_window = CreateWindowA("d3d8_test_wndproc_wc", "d3d8_test",
|
device_window = CreateWindowA("d3d8_test_wndproc_wc", "d3d8_test",
|
||||||
WS_MAXIMIZE | WS_VISIBLE | WS_CAPTION , 0, 0, 640, 480, 0, 0, 0, 0);
|
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());
|
ok(!!thread, "Failed to create thread, last error %#x.\n", GetLastError());
|
||||||
|
|
||||||
res = WaitForSingleObject(thread_params.window_created, INFINITE);
|
res = WaitForSingleObject(thread_params.window_created, INFINITE);
|
||||||
|
@ -1674,7 +1674,7 @@ static void test_wndproc_windowed(void)
|
||||||
HANDLE thread;
|
HANDLE thread;
|
||||||
LONG_PTR proc;
|
LONG_PTR proc;
|
||||||
ULONG ref;
|
ULONG ref;
|
||||||
DWORD res;
|
DWORD res, tid;
|
||||||
|
|
||||||
if (!(d3d8 = pDirect3DCreate8(D3D_SDK_VERSION)))
|
if (!(d3d8 = pDirect3DCreate8(D3D_SDK_VERSION)))
|
||||||
{
|
{
|
||||||
|
@ -1695,7 +1695,7 @@ static void test_wndproc_windowed(void)
|
||||||
WS_MAXIMIZE | WS_VISIBLE | WS_CAPTION, 0, 0, 640, 480, 0, 0, 0, 0);
|
WS_MAXIMIZE | WS_VISIBLE | WS_CAPTION, 0, 0, 640, 480, 0, 0, 0, 0);
|
||||||
device_window = CreateWindowA("d3d8_test_wndproc_wc", "d3d8_test",
|
device_window = CreateWindowA("d3d8_test_wndproc_wc", "d3d8_test",
|
||||||
WS_MAXIMIZE | WS_VISIBLE | WS_CAPTION, 0, 0, 640, 480, 0, 0, 0, 0);
|
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());
|
ok(!!thread, "Failed to create thread, last error %#x.\n", GetLastError());
|
||||||
|
|
||||||
res = WaitForSingleObject(thread_params.window_created, INFINITE);
|
res = WaitForSingleObject(thread_params.window_created, INFINITE);
|
||||||
|
|
Loading…
Reference in New Issue