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:
Sebastian Lackner 2017-05-10 17:45:20 +02:00 committed by Alexandre Julliard
parent e39d1614a9
commit d7dcb965d5
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ static BOOL match_type(const WCHAR *clsid_str, const WCHAR *type_str, MFT_REGIST
if (RegQueryValueExW(hfilter, type_str, NULL, &reg_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))