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
3ebb8784
Commit
3ebb8784
authored
Jan 09, 2012
by
Aric Stewart
Committed by
Alexandre Julliard
Jan 10, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Better handle cases in single line edit controls where es->x_offset exceeds line length.
parent
fbbf3ba4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
edit.c
dlls/user32/edit.c
+3
-0
No files found.
dlls/user32/edit.c
View file @
3ebb8784
...
...
@@ -1093,6 +1093,7 @@ static LRESULT EDIT_EM_PosFromChar(EDITSTATE *es, INT index, BOOL after_wrap)
{
if
(
es
->
x_offset
>=
get_text_length
(
es
))
{
int
leftover
=
es
->
x_offset
-
get_text_length
(
es
);
if
(
es
->
ssa
)
{
const
SIZE
*
size
;
...
...
@@ -1101,7 +1102,9 @@ static LRESULT EDIT_EM_PosFromChar(EDITSTATE *es, INT index, BOOL after_wrap)
}
else
xoff
=
0
;
xoff
+=
es
->
char_width
*
leftover
;
}
else
ScriptStringCPtoX
(
es
->
ssa
,
es
->
x_offset
,
FALSE
,
&
xoff
);
}
else
...
...
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