Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
820460fc
Commit
820460fc
authored
Oct 27, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
Oct 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Handle PosFromChar if the string is empty and so we have no ssa.
parent
31f8a525
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
edit.c
dlls/user32/edit.c
+17
-7
No files found.
dlls/user32/edit.c
View file @
820460fc
...
@@ -1069,11 +1069,16 @@ static LRESULT EDIT_EM_PosFromChar(EDITSTATE *es, INT index, BOOL after_wrap)
...
@@ -1069,11 +1069,16 @@ static LRESULT EDIT_EM_PosFromChar(EDITSTATE *es, INT index, BOOL after_wrap)
EDIT_UpdateUniscribeData
(
es
,
NULL
,
0
);
EDIT_UpdateUniscribeData
(
es
,
NULL
,
0
);
if
(
es
->
x_offset
)
if
(
es
->
x_offset
)
{
{
if
(
es
->
x_offset
>=
get_text_length
(
es
))
if
(
es
->
x_offset
>=
get_text_length
(
es
))
{
{
const
SIZE
*
size
;
if
(
es
->
ssa
)
size
=
ScriptString_pSize
(
es
->
ssa
);
{
xoff
=
size
->
cx
;
const
SIZE
*
size
;
size
=
ScriptString_pSize
(
es
->
ssa
);
xoff
=
size
->
cx
;
}
else
xoff
=
0
;
}
}
ScriptStringCPtoX
(
es
->
ssa
,
es
->
x_offset
,
FALSE
,
&
xoff
);
ScriptStringCPtoX
(
es
->
ssa
,
es
->
x_offset
,
FALSE
,
&
xoff
);
}
}
...
@@ -1081,9 +1086,14 @@ static LRESULT EDIT_EM_PosFromChar(EDITSTATE *es, INT index, BOOL after_wrap)
...
@@ -1081,9 +1086,14 @@ static LRESULT EDIT_EM_PosFromChar(EDITSTATE *es, INT index, BOOL after_wrap)
{
{
if
(
index
>=
get_text_length
(
es
))
if
(
index
>=
get_text_length
(
es
))
{
{
const
SIZE
*
size
;
if
(
es
->
ssa
)
size
=
ScriptString_pSize
(
es
->
ssa
);
{
xi
=
size
->
cx
;
const
SIZE
*
size
;
size
=
ScriptString_pSize
(
es
->
ssa
);
xi
=
size
->
cx
;
}
else
xi
=
0
;
}
}
else
else
ScriptStringCPtoX
(
es
->
ssa
,
index
,
FALSE
,
&
xi
);
ScriptStringCPtoX
(
es
->
ssa
,
index
,
FALSE
,
&
xi
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment