Henri Verbeet : d3d9: Don't ignore the GetCursorInfo() return value (LLVM/ Clang).

Alexandre Julliard julliard at winehq.org
Mon Nov 3 09:06:22 CST 2008


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Fri Oct 31 16:21:22 2008 +0100

d3d9: Don't ignore the GetCursorInfo() return value (LLVM/Clang).

---

 dlls/d3d9/tests/device.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/dlls/d3d9/tests/device.c b/dlls/d3d9/tests/device.c
index 88394cf..b90d005 100644
--- a/dlls/d3d9/tests/device.c
+++ b/dlls/d3d9/tests/device.c
@@ -645,7 +645,7 @@ static void test_cursor(void)
 
     memset(&info, 0, sizeof(info));
     info.cbSize = sizeof(info);
-    hr = GetCursorInfo(&info);
+    ok(GetCursorInfo(&info), "GetCursorInfo failed\n");
     cur = info.hCursor;
 
     pD3d = pDirect3DCreate9( D3D_SDK_VERSION );
@@ -688,8 +688,7 @@ static void test_cursor(void)
 
     memset(&info, 0, sizeof(info));
     info.cbSize = sizeof(info);
-    hr = GetCursorInfo(&info);
-    ok(hr != 0, "GetCursorInfo returned %08x\n", hr);
+    ok(GetCursorInfo(&info), "GetCursorInfo failed\n");
     ok(info.flags & CURSOR_SHOWING, "The gdi cursor is hidden (%08x)\n", info.flags);
     ok(info.hCursor == cur, "The cursor handle is %p\n", info.hCursor); /* unchanged */
 
@@ -704,8 +703,7 @@ static void test_cursor(void)
     /* GDI cursor unchanged */
     memset(&info, 0, sizeof(info));
     info.cbSize = sizeof(info);
-    hr = GetCursorInfo(&info);
-    ok(hr != 0, "GetCursorInfo returned %08x\n", hr);
+    ok(GetCursorInfo(&info), "GetCursorInfo failed\n");
     ok(info.flags & CURSOR_SHOWING, "The gdi cursor is hidden (%08x)\n", info.flags);
     ok(info.hCursor == cur, "The cursor handle is %p\n", info.hCursor); /* unchanged */
 




More information about the wine-cvs mailing list