usp10: Correct access to -1 index of array.

Issue found by Phil Krylov.
This commit is contained in:
Aric Stewart 2013-03-18 11:21:15 -05:00 committed by Alexandre Julliard
parent c9cbde73c0
commit e909665db3

View file

@ -1341,7 +1341,7 @@ static HRESULT _ItemizeInternal(const WCHAR *pwcInChars, int cInChars,
if (original == Script_Punctuation2)
break;
}
if (scriptInformation[scripts[j]].props.fComplex || asian)
if (j >= 0 && (scriptInformation[scripts[j]].props.fComplex || asian))
scripts[i] = scripts[j];
}
}