d3d9/tests: Use FAILED instead of !SUCCEEDED.
This commit is contained in:
parent
05d397283a
commit
6a908eb149
|
@ -1673,13 +1673,13 @@ static void test_null_stream(void)
|
||||||
}
|
}
|
||||||
hr = IDirect3DDevice9_CreateVertexDeclaration(device, decl_elements, &decl);
|
hr = IDirect3DDevice9_CreateVertexDeclaration(device, decl_elements, &decl);
|
||||||
ok(SUCCEEDED(hr), "IDirect3DDevice9_CreateVertexDeclaration failed (0x%08x)\n", hr);
|
ok(SUCCEEDED(hr), "IDirect3DDevice9_CreateVertexDeclaration failed (0x%08x)\n", hr);
|
||||||
if (!SUCCEEDED(hr)) {
|
if (FAILED(hr)) {
|
||||||
skip("Vertex declaration handling not possible.\n");
|
skip("Vertex declaration handling not possible.\n");
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
hr = IDirect3DDevice9_CreateVertexBuffer(device, 12 * sizeof(float), 0, 0, D3DPOOL_MANAGED, &buffer, NULL);
|
hr = IDirect3DDevice9_CreateVertexBuffer(device, 12 * sizeof(float), 0, 0, D3DPOOL_MANAGED, &buffer, NULL);
|
||||||
ok(SUCCEEDED(hr), "IDirect3DDevice9_CreateVertexBuffer failed (0x%08x)\n", hr);
|
ok(SUCCEEDED(hr), "IDirect3DDevice9_CreateVertexBuffer failed (0x%08x)\n", hr);
|
||||||
if (!SUCCEEDED(hr)) {
|
if (FAILED(hr)) {
|
||||||
skip("Vertex buffer handling not possible.\n");
|
skip("Vertex buffer handling not possible.\n");
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue