Sebastian Lackner : mfplat: Fix invalid memory access.
Alexandre Julliard
julliard at winehq.org
Wed May 10 17:23:18 CDT 2017
Module: wine
Branch: master
Commit: d7dcb965d56416f58f0ce3c441d7b8f9d5351ff9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d7dcb965d56416f58f0ce3c441d7b8f9d5351ff9
Author: Sebastian Lackner <sebastian at fds-team.de>
Date: Wed May 10 17:45:20 2017 +0200
mfplat: Fix invalid memory access.
Introduced in 0e93b08f6e81799f943159e529c3fa1e767d0d02.
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mfplat/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/mfplat/main.c b/dlls/mfplat/main.c
index c1c7003..56bc284 100644
--- a/dlls/mfplat/main.c
+++ b/dlls/mfplat/main.c
@@ -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))
More information about the wine-cvs
mailing list