ddraw/tests: Use the proper type for a return value (PVS-Studio)

Michael Stefaniuc mstefani at redhat.de
Wed Oct 28 19:01:28 CDT 2015


Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
 dlls/ddraw/tests/ddrawmodes.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ddraw/tests/ddrawmodes.c b/dlls/ddraw/tests/ddrawmodes.c
index 13e2732..f5b0666 100644
--- a/dlls/ddraw/tests/ddrawmodes.c
+++ b/dlls/ddraw/tests/ddrawmodes.c
@@ -932,8 +932,8 @@ static void testcooperativelevels_exclusive(void)
 
     /* rect_before_create is assumed to hold the screen rect */
     GetClientRect(hwnd, &window_rect);
-    rc = EqualRect(&rect_before_create, &window_rect);
-    ok(rc, "Fullscreen window has wrong size.\n");
+    success = EqualRect(&rect_before_create, &window_rect);
+    ok(success, "Fullscreen window has wrong size.\n");
 
     /* Set the focus window. Should fail */
     rc = IDirectDraw_SetCooperativeLevel(lpDD,
-- 
2.1.0



More information about the wine-patches mailing list