mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 15:23:37 +00:00
usp10: Correct access to -1 index of array.
Issue found by Phil Krylov.
This commit is contained in:
parent
c9cbde73c0
commit
e909665db3
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue