From: Yuxuan Shui <yshui(a)codeweavers.com> --- dlls/gdiplus/tests/graphicspath.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/gdiplus/tests/graphicspath.c b/dlls/gdiplus/tests/graphicspath.c index 48894e42dd5..aa81296ef4c 100644 --- a/dlls/gdiplus/tests/graphicspath.c +++ b/dlls/gdiplus/tests/graphicspath.c @@ -121,7 +121,11 @@ static void _ok_path_fudge(GpPath* path, const path_test_t *expected, INT expect if (match || expected[eidx].todo != 2) idx++; if (match || !numskip--) - numskip = expected[++eidx].wine_only_entries_preceding; + { + eidx++; + if (eidx < expected_size) + numskip = expected[eidx].wine_only_entries_preceding; + } } end: -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8423