mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-15 08:37:16 +00:00
msvfw32: Allow ICInfo to enumerate codecs when fccType is zero.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
90e4ad3b14
commit
ca2420c0ea
|
@ -248,7 +248,7 @@ static BOOL enum_drivers(DWORD fccType, enum_handler_t handler, void* param)
|
|||
lRet = RegEnumValueA(hKey, i++, buf, &name, 0, &type, (LPBYTE)(buf+name), &data);
|
||||
if (lRet == ERROR_NO_MORE_ITEMS) break;
|
||||
if (lRet != ERROR_SUCCESS) continue;
|
||||
if (name != 9 || strncasecmp(buf, fccTypeStr, 5)) continue;
|
||||
if (fccType && (name != 9 || strncasecmp(buf, fccTypeStr, 5))) continue;
|
||||
buf[name] = '=';
|
||||
if ((result = handler(buf, cnt++, param))) break;
|
||||
}
|
||||
|
@ -262,7 +262,7 @@ static BOOL enum_drivers(DWORD fccType, enum_handler_t handler, void* param)
|
|||
for (s = buf; *s; s += strlen(s) + 1)
|
||||
{
|
||||
TRACE("got %s\n", s);
|
||||
if (strncasecmp(s, fccTypeStr, 5) || s[9] != '=') continue;
|
||||
if (fccType && (strncasecmp(s, fccTypeStr, 5) || s[9] != '=')) continue;
|
||||
if ((result = handler(s, cnt++, param))) break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -318,7 +318,6 @@ todo_wine
|
|||
"ICInfo failed on fcc 0x%08x using uppercase fccHandler\n", info.fccHandler);
|
||||
}
|
||||
}
|
||||
todo_wine
|
||||
ok(found != 0, "expected at least one codec\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue