[PATCH 2/3] msvfw32/tests: Simplify swapped-case test.

Zebediah Figura z.figura12 at gmail.com
Fri Feb 9 09:57:29 CST 2018


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 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");
 }
-- 
2.7.4




More information about the wine-devel mailing list