[PATCH] ddraw/tests: Use proper type for return values (PVS-Studio)

Nikolay Sivov nsivov at codeweavers.com
Tue Oct 13 16:40:29 CDT 2015


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/ddraw/tests/ddrawmodes.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/dlls/ddraw/tests/ddrawmodes.c b/dlls/ddraw/tests/ddrawmodes.c
index a325f86..13e2732 100644
--- a/dlls/ddraw/tests/ddrawmodes.c
+++ b/dlls/ddraw/tests/ddrawmodes.c
@@ -567,13 +567,13 @@ static void setdisplaymode(int i)
                       scrn.right, scrn.bottom, virt.left, virt.top, virt.right, virt.bottom);
                 if (!EqualRect(&scrn, &orig_rect))
                 {
-                    HRESULT rect_result;
+                    BOOL rect_result, ret;
 
                     /* Check that the client rect was resized */
-                    rc = GetClientRect(hwnd, &test);
-                    ok(rc!=0, "GetClientRect returned %x\n", rc);
-                    rc = EqualRect(&scrn, &test);
-                    todo_wine ok(rc!=0, "Fullscreen window has wrong size\n");
+                    ret = GetClientRect(hwnd, &test);
+                    ok(ret, "GetClientRect returned %d\n", ret);
+                    ret = EqualRect(&scrn, &test);
+                    todo_wine ok(ret, "Fullscreen window has wrong size\n");
 
                     /* Check that switching to normal cooperative level
                        does not restore the display mode */
-- 
2.6.1




More information about the wine-patches mailing list