mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
usp10: Correct access to -1 index of array.
Issue found by Phil Krylov.
This commit is contained in:
parent
c9cbde73c0
commit
e909665db3
1 changed files with 1 additions and 1 deletions
|
@ -1341,7 +1341,7 @@ static HRESULT _ItemizeInternal(const WCHAR *pwcInChars, int cInChars,
|
||||||
if (original == Script_Punctuation2)
|
if (original == Script_Punctuation2)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (scriptInformation[scripts[j]].props.fComplex || asian)
|
if (j >= 0 && (scriptInformation[scripts[j]].props.fComplex || asian))
|
||||||
scripts[i] = scripts[j];
|
scripts[i] = scripts[j];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue