mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
usp10: Don't read past the end of the context_type array.
This commit is contained in:
parent
9d8b39cf5e
commit
28adfd4c3c
1 changed files with 1 additions and 1 deletions
|
@ -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])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue