Commit 6a908eb1 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

d3d9/tests: Use FAILED instead of !SUCCEEDED.

parent 05d39728
......@@ -1673,13 +1673,13 @@ static void test_null_stream(void)
}
hr = IDirect3DDevice9_CreateVertexDeclaration(device, decl_elements, &decl);
ok(SUCCEEDED(hr), "IDirect3DDevice9_CreateVertexDeclaration failed (0x%08x)\n", hr);
if (!SUCCEEDED(hr)) {
if (FAILED(hr)) {
skip("Vertex declaration handling not possible.\n");
goto cleanup;
}
hr = IDirect3DDevice9_CreateVertexBuffer(device, 12 * sizeof(float), 0, 0, D3DPOOL_MANAGED, &buffer, NULL);
ok(SUCCEEDED(hr), "IDirect3DDevice9_CreateVertexBuffer failed (0x%08x)\n", hr);
if (!SUCCEEDED(hr)) {
if (FAILED(hr)) {
skip("Vertex buffer handling not possible.\n");
goto cleanup;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment