mfplat: Fix invalid memory access.
Introduced in 0e93b08f6e
.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e39d1614a9
commit
d7dcb965d5
|
@ -262,7 +262,7 @@ static BOOL match_type(const WCHAR *clsid_str, const WCHAR *type_str, MFT_REGIST
|
|||
if (RegQueryValueExW(hfilter, type_str, NULL, ®_type, (LPBYTE)info, &size) != ERROR_SUCCESS)
|
||||
goto out;
|
||||
|
||||
for (i = 0; i < size / sizeof(MFT_REGISTER_TYPE_INFO) + 1; i++)
|
||||
for (i = 0; i < size / sizeof(MFT_REGISTER_TYPE_INFO); i++)
|
||||
{
|
||||
if (IsEqualGUID(&info[i].guidMajorType, &type->guidMajorType) &&
|
||||
IsEqualGUID(&info[i].guidSubtype, &type->guidSubtype))
|
||||
|
|
Loading…
Reference in New Issue