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,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;
......
......@@ -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);
}
......
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