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

Alexandre Julliard julliard at wine.codeweavers.com
Thu Oct 29 09:32:11 CDT 2015


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Thu Oct 29 01:01:28 2015 +0100

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

Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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,




More information about the wine-cvs mailing list