Commit 28adfd4c authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

usp10: Don't read past the end of the context_type array.

parent 9d8b39cf
......@@ -931,7 +931,7 @@ static void mark_invalid_combinations(HDC hdc, const WCHAR* pwcChars, INT cChars
context_type[i] = lex(pwcChars[i]);
GetGlyphIndicesW(hdc, &invalid, 1, &invalid_glyph, 0);
for (i = 1, g=1; i < cChars; i++, g++)
for (i = 1, g=1; i < cChars - 1; i++, g++)
{
if (context_type[i] != 0 && context_type[i+write_dir]==context_type[i])
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment