From: Yuxuan Shui yshui@codeweavers.com
--- dlls/usp10/tests/usp10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/usp10/tests/usp10.c b/dlls/usp10/tests/usp10.c index 92b26e56392..5395768c0f8 100644 --- a/dlls/usp10/tests/usp10.c +++ b/dlls/usp10/tests/usp10.c @@ -1030,7 +1030,7 @@ static inline void _test_shape_ok(int valid, HDC hdc, LPCWSTR string, winetest_ok(nGlyphs == outnGlyphs, "got incorrect number of glyphs (%i)\n",outnGlyphs); else if (nGlyphs != outnGlyphs) winetest_trace("got incorrect number of glyphs (%i)\n",outnGlyphs); - for (x = 0; x < outnGlyphs; x++) + for (x = 0; x < min(nGlyphs, outnGlyphs); x++) { if (glyphItems[x].Glyph) {