=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: winmm/tests: Simplify conditional expression (PVS-Studio).

Alexandre Julliard julliard at wine.codeweavers.com
Fri Oct 16 09:03:44 CDT 2015


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

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Thu Oct 15 19:43:50 2015 +0200

winmm/tests: Simplify conditional expression (PVS-Studio).

Signed-off-by: Frédéric Delanoy <frederic.delanoy at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winmm/tests/joystick.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winmm/tests/joystick.c b/dlls/winmm/tests/joystick.c
index 2f235fa..2f230f5 100644
--- a/dlls/winmm/tests/joystick.c
+++ b/dlls/winmm/tests/joystick.c
@@ -156,7 +156,7 @@ static void test_api(void)
         par = 0xdead;
         ret = joyGetThreshold(joyid, &par);
         ok(ret == JOYERR_NOERROR, "Test [%d]: Expected %d, got %d\n", i, JOYERR_NOERROR, ret);
-        if (!win98 || (win98 && i < 8))
+        if (!win98 || i < 8)
         {
             if ((1 << i) & threshold_error)
                 ok(par == period[8], "Test [%d]: Expected %d, got %d\n", i, period[8], par);




More information about the wine-cvs mailing list