Zebediah Figura : msvfw32/tests: Simplify swapped-case test.

Alexandre Julliard julliard at winehq.org
Mon Feb 12 16:10:36 CST 2018


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

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Fri Feb  9 10:16:10 2018 -0600

msvfw32/tests: Simplify swapped-case test.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msvfw32/tests/msvfw.c | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)

diff --git a/dlls/msvfw32/tests/msvfw.c b/dlls/msvfw32/tests/msvfw.c
index 3fe6702..c6fe0f2 100644
--- a/dlls/msvfw32/tests/msvfw.c
+++ b/dlls/msvfw32/tests/msvfw.c
@@ -303,18 +303,9 @@ static void test_ICInfo(void)
 
         found++;
         /* Test getting info with a different case - bug 41602 */
-        if (fcc[0] & 0x20)
-        {
-            fcc[0] &= ~0x20;
-            ok(ICInfo(info.fccType, info.fccHandler, &info2),
-               "ICInfo failed on fcc 0x%08x using lowercase fccHandler\n", info.fccHandler);
-        }
-        else
-        {
-            fcc[0] |= 0x20;
-            ok(ICInfo(info.fccType, info.fccHandler, &info2),
-               "ICInfo failed on fcc 0x%08x using uppercase fccHandler\n", info.fccHandler);
-        }
+        fcc[0] ^= 0x20;
+        ok(ICInfo(info.fccType, info.fccHandler, &info2),
+           "ICInfo failed on fcc 0x%08x\n", info.fccHandler);
     }
     ok(found != 0, "expected at least one codec\n");
 }




More information about the wine-cvs mailing list