[PATCH 3/3] msvfw32: Use case insensitive compare in ICInfo for fourcc codes

Bruno Jesus 00cpxxx at gmail.com
Mon Nov 21 23:52:55 CST 2016


From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael at fds-team.de>

Signed-off-by: Bruno Jesus <00cpxxx at gmail.com>
---
 dlls/msvfw32/msvideo_main.c | 5 ++---
 dlls/msvfw32/tests/msvfw.c  | 2 --
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/dlls/msvfw32/msvideo_main.c b/dlls/msvfw32/msvideo_main.c
index 8ed6917..cc5c85d 100644
--- a/dlls/msvfw32/msvideo_main.c
+++ b/dlls/msvfw32/msvideo_main.c
@@ -299,9 +299,8 @@ static BOOL ICInfo_enum_handler(const char *drv, unsigned int nr, void *param)
     ICINFO *lpicinfo = param;
     DWORD fccHandler = mmioStringToFOURCCA(drv + 5, 0);
 
-    /* exact match of fccHandler or nth driver found */
-    if ((lpicinfo->fccHandler != nr) && (lpicinfo->fccHandler != fccHandler))
-	return FALSE;
+    if (lpicinfo->fccHandler != nr && compare_fourcc(lpicinfo->fccHandler, fccHandler))
+        return FALSE;
 
     lpicinfo->fccHandler = fccHandler;
     lpicinfo->dwFlags = 0;
diff --git a/dlls/msvfw32/tests/msvfw.c b/dlls/msvfw32/tests/msvfw.c
index d621da2..3fe6702 100644
--- a/dlls/msvfw32/tests/msvfw.c
+++ b/dlls/msvfw32/tests/msvfw.c
@@ -306,14 +306,12 @@ static void test_ICInfo(void)
         if (fcc[0] & 0x20)
         {
             fcc[0] &= ~0x20;
-todo_wine
             ok(ICInfo(info.fccType, info.fccHandler, &info2),
                "ICInfo failed on fcc 0x%08x using lowercase fccHandler\n", info.fccHandler);
         }
         else
         {
             fcc[0] |= 0x20;
-todo_wine
             ok(ICInfo(info.fccType, info.fccHandler, &info2),
                "ICInfo failed on fcc 0x%08x using uppercase fccHandler\n", info.fccHandler);
         }
-- 
2.9.3




More information about the wine-patches mailing list