d3d9/tests: Skip a test on failure.

This commit is contained in:
Paul Vriens 2009-07-04 16:56:10 +02:00 committed by Alexandre Julliard
parent 31d82c5fdc
commit f96e210ed7
1 changed files with 4 additions and 2 deletions

View File

@ -2336,10 +2336,12 @@ static void test_multi_device(void)
hr = IDirect3D9_CreateDevice(d3d9, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hwnd1,
D3DCREATE_SOFTWARE_VERTEXPROCESSING, &present_parameters, &device1);
ok(SUCCEEDED(hr), "Failed to create a device, hr %#x\n", hr);
IDirect3D9_Release(d3d9);
d3d9 = NULL;
if (FAILED(hr)) goto fail;
if (FAILED(hr)) {
skip("Failed to create a device\n");
goto fail;
}
d3d9 = pDirect3DCreate9(D3D_SDK_VERSION);
ok(d3d9 != NULL, "Failed to create a d3d9 object.\n");