Michael Stefaniuc : d3d9/tests: Use FAILED instead of !SUCCEEDED.

Alexandre Julliard julliard at winehq.org
Wed Oct 8 08:33:06 CDT 2008


Module: wine
Branch: master
Commit: 6a908eb1496de93f8de90e944f2a44195fb52cb4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6a908eb1496de93f8de90e944f2a44195fb52cb4

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Wed Oct  8 01:35:08 2008 +0200

d3d9/tests: Use FAILED instead of !SUCCEEDED.

---

 dlls/d3d9/tests/device.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/d3d9/tests/device.c b/dlls/d3d9/tests/device.c
index d28da88..cd57772 100644
--- a/dlls/d3d9/tests/device.c
+++ b/dlls/d3d9/tests/device.c
@@ -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;
     }




More information about the wine-cvs mailing list