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
4bc418b3
Commit
4bc418b3
authored
Jan 30, 2012
by
Aric Stewart
Committed by
Alexandre Julliard
Jan 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Check return code from ScriptStringAnalyse.
parent
509e5576
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
edit.c
dlls/user32/edit.c
+10
-1
No files found.
dlls/user32/edit.c
View file @
4bc418b3
...
...
@@ -403,6 +403,7 @@ static SCRIPT_STRING_ANALYSIS EDIT_UpdateUniscribeData_linedef(EDITSTATE *es, HD
HFONT
old_font
=
NULL
;
HDC
udc
=
dc
;
SCRIPT_TABDEF
tabdef
;
HRESULT
hr
;
if
(
!
udc
)
udc
=
GetDC
(
es
->
hwndSelf
);
...
...
@@ -414,7 +415,15 @@ static SCRIPT_STRING_ANALYSIS EDIT_UpdateUniscribeData_linedef(EDITSTATE *es, HD
tabdef
.
pTabStops
=
es
->
tabs
;
tabdef
.
iTabOrigin
=
0
;
ScriptStringAnalyse
(
udc
,
&
es
->
text
[
index
],
line_def
->
net_length
,
(
1
.
5
*
line_def
->
net_length
+
16
),
-
1
,
SSA_LINK
|
SSA_FALLBACK
|
SSA_GLYPHS
|
SSA_TAB
,
-
1
,
NULL
,
NULL
,
NULL
,
&
tabdef
,
NULL
,
&
line_def
->
ssa
);
hr
=
ScriptStringAnalyse
(
udc
,
&
es
->
text
[
index
],
line_def
->
net_length
,
(
1
.
5
*
line_def
->
net_length
+
16
),
-
1
,
SSA_LINK
|
SSA_FALLBACK
|
SSA_GLYPHS
|
SSA_TAB
,
-
1
,
NULL
,
NULL
,
NULL
,
&
tabdef
,
NULL
,
&
line_def
->
ssa
);
if
(
FAILED
(
hr
))
{
WARN
(
"ScriptStringAnalyse failed (%x)
\n
"
,
hr
);
line_def
->
ssa
=
NULL
;
}
if
(
es
->
font
)
SelectObject
(
udc
,
old_font
);
...
...
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