Commit 02fa1d4c authored by Michael Müller's avatar Michael Müller Committed by Alexandre Julliard

msvfw32: Use case insensitive compare in ICInfo for fourcc codes.

parent ca2420c0
...@@ -299,8 +299,7 @@ static BOOL ICInfo_enum_handler(const char *drv, unsigned int nr, void *param) ...@@ -299,8 +299,7 @@ static BOOL ICInfo_enum_handler(const char *drv, unsigned int nr, void *param)
ICINFO *lpicinfo = param; ICINFO *lpicinfo = param;
DWORD fccHandler = mmioStringToFOURCCA(drv + 5, 0); DWORD fccHandler = mmioStringToFOURCCA(drv + 5, 0);
/* exact match of fccHandler or nth driver found */ if (lpicinfo->fccHandler != nr && compare_fourcc(lpicinfo->fccHandler, fccHandler))
if ((lpicinfo->fccHandler != nr) && (lpicinfo->fccHandler != fccHandler))
return FALSE; return FALSE;
lpicinfo->fccHandler = fccHandler; lpicinfo->fccHandler = fccHandler;
......
...@@ -306,14 +306,12 @@ static void test_ICInfo(void) ...@@ -306,14 +306,12 @@ static void test_ICInfo(void)
if (fcc[0] & 0x20) if (fcc[0] & 0x20)
{ {
fcc[0] &= ~0x20; fcc[0] &= ~0x20;
todo_wine
ok(ICInfo(info.fccType, info.fccHandler, &info2), ok(ICInfo(info.fccType, info.fccHandler, &info2),
"ICInfo failed on fcc 0x%08x using lowercase fccHandler\n", info.fccHandler); "ICInfo failed on fcc 0x%08x using lowercase fccHandler\n", info.fccHandler);
} }
else else
{ {
fcc[0] |= 0x20; fcc[0] |= 0x20;
todo_wine
ok(ICInfo(info.fccType, info.fccHandler, &info2), ok(ICInfo(info.fccType, info.fccHandler, &info2),
"ICInfo failed on fcc 0x%08x using uppercase fccHandler\n", info.fccHandler); "ICInfo failed on fcc 0x%08x using uppercase fccHandler\n", info.fccHandler);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment