user32: Early versions of usp10 are not well behaved with ScriptString_pSize when SCRIPT_STRING_ANALYSIS is NULL.
This commit is contained in:
parent
7ee1250e46
commit
64adeb0285
|
@ -783,12 +783,13 @@ static void EDIT_BuildLineDefs_ML(EDITSTATE *es, INT istart, INT iend, INT delta
|
|||
*/
|
||||
static void EDIT_CalcLineWidth_SL(EDITSTATE *es)
|
||||
{
|
||||
const SIZE *size;
|
||||
|
||||
EDIT_UpdateUniscribeData(es, NULL, 0);
|
||||
if (es->ssa)
|
||||
{
|
||||
const SIZE *size;
|
||||
size = ScriptString_pSize(es->ssa);
|
||||
if (size)
|
||||
es->text_width = size->cx;
|
||||
}
|
||||
else
|
||||
es->text_width = 0;
|
||||
}
|
||||
|
@ -884,7 +885,8 @@ static INT EDIT_CharFromPos(EDITSTATE *es, INT x, INT y, LPBOOL after_wrap)
|
|||
{
|
||||
if (x)
|
||||
{
|
||||
const SIZE *size;
|
||||
const SIZE *size = NULL;
|
||||
if (es->ssa)
|
||||
size = ScriptString_pSize(es->ssa);
|
||||
if (!size)
|
||||
index = 0;
|
||||
|
|
Loading…
Reference in New Issue