mirror of
https://github.com/reactos/wine.git
synced 2025-01-19 10:13:01 +00:00
mfplat: Fix invalid memory access.
Introduced in 0e93b08f6e81799f943159e529c3fa1e767d0d02. 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…
x
Reference in New Issue
Block a user