Rémi Bernon : mf/tests: Fix incorrect array index when formatting blob value.
Alexandre Julliard
julliard at winehq.org
Wed Mar 30 15:43:56 CDT 2022
Module: wine
Branch: master
Commit: edef14126cbdb64dda218688a51b6e170cb4909b
URL: https://source.winehq.org/git/wine.git/?a=commit;h=edef14126cbdb64dda218688a51b6e170cb4909b
Author: Rémi Bernon <rbernon at codeweavers.com>
Date: Tue Mar 29 11:55:27 2022 +0200
mf/tests: Fix incorrect array index when formatting blob value.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45988
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47084
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49715
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52183
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mf/tests/mf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/mf/tests/mf.c b/dlls/mf/tests/mf.c
index 0df524b4e16..b2d2880bea6 100644
--- a/dlls/mf/tests/mf.c
+++ b/dlls/mf/tests/mf.c
@@ -147,7 +147,7 @@ static void check_attributes_(int line, IMFAttributes *attributes, const struct
case VT_VECTOR | VT_UI1:
buf += sprintf(buf, "size %lu, data {", value.caub.cElems);
for (j = 0; j < 16 && j < value.caub.cElems; ++j)
- buf += sprintf(buf, "0x%02x,", value.caub.pElems[i + j]);
+ buf += sprintf(buf, "0x%02x,", value.caub.pElems[j]);
if (value.caub.cElems > 16)
buf += sprintf(buf, "...}");
else
More information about the wine-cvs
mailing list