[PATCH 1/5] mf/tests: Fix incorrect array index when formatting blob value.

Rémi Bernon rbernon at codeweavers.com
Tue Mar 29 03:11:49 CDT 2022


Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
 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
-- 
2.35.1




More information about the wine-devel mailing list