hverbeet@codeweavers.com: [2/5] d3d8: Don't ignore the GetCursorInfo() return value(LLVM/Clang).

0 views
Skip to first unread message

Patchwatcher

unread,
Oct 31, 2008, 5:48:20 PM10/31/08
to wine-patch...@googlegroups.com
From: Henri Verbeet <hver...@codeweavers.com>
Subject: [2/5] d3d8: Don't ignore the GetCursorInfo() return value(LLVM/Clang).
Date: Fri, 31 Oct 2008 16:26:44 +0100

>From f82fac539ef4423de7985ab39c87df87a9849b06 Mon Sep 17 00:00:00 2001
From: Henri Verbeet <hver...@codeweavers.com>
Date: Fri, 31 Oct 2008 16:21:22 +0100
Subject: d3d8: Don't ignore the GetCursorInfo() return value (LLVM/Clang).

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

diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c
index 439267d..cb60d7c 100644
--- a/dlls/d3d8/tests/device.c
+++ b/dlls/d3d8/tests/device.c
@@ -629,7 +629,7 @@ static void test_cursor(void)

memset(&info, 0, sizeof(info));
info.cbSize = sizeof(info);
- hr = pGetCursorInfo(&info);
+ ok(pGetCursorInfo(&info), "GetCursorInfo failed\n");
cur = info.hCursor;

pD3d = pDirect3DCreate8( D3D_SDK_VERSION );
@@ -674,8 +674,7 @@ static void test_cursor(void)

memset(&info, 0, sizeof(info));
info.cbSize = sizeof(info);
- hr = pGetCursorInfo(&info);
- ok(hr != 0, "GetCursorInfo returned %#08x\n", hr);
+ ok(pGetCursorInfo(&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 */

@@ -690,8 +689,7 @@ static void test_cursor(void)
/* GDI cursor unchanged */
memset(&info, 0, sizeof(info));
info.cbSize = sizeof(info);
- hr = pGetCursorInfo(&info);
- ok(hr != 0, "GetCursorInfo returned %#08x\n", hr);
+ ok(pGetCursorInfo(&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 */

--
1.5.6.4


Reply all
Reply to author
Forward
0 new messages