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
352df115
Commit
352df115
authored
Feb 19, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/layout: Remove unnecessary argument check from GetInlineObject().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7129b3e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
layout.c
dlls/dwrite/layout.c
+0
-3
layout.c
dlls/dwrite/tests/layout.c
+1
-3
No files found.
dlls/dwrite/layout.c
View file @
352df115
...
...
@@ -3542,9 +3542,6 @@ static HRESULT WINAPI dwritetextlayout_GetInlineObject(IDWriteTextLayout4 *iface
TRACE
(
"%p, %u, %p, %p.
\n
"
,
iface
,
position
,
object
,
r
);
if
(
position
>=
layout
->
len
)
return
S_OK
;
range
=
get_layout_range_by_pos
(
layout
,
position
);
*
object
=
range
->
object
;
if
(
*
object
)
...
...
dlls/dwrite/tests/layout.c
View file @
352df115
...
...
@@ -6224,11 +6224,9 @@ todo_wine
object
=
NULL
;
hr
=
IDWriteTextLayout_GetInlineObject
(
layout
,
10
,
&
object
,
&
range
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
todo_wine
ok
(
range
.
startPosition
==
10
&&
range
.
length
==
~
0u
-
10
,
"Unexpected range (%u, %u).
\n
"
,
range
.
startPosition
,
range
.
length
);
if
(
object
)
IDWriteInlineObject_Release
(
object
);
IDWriteInlineObject_Release
(
object
);
range
.
startPosition
=
0
;
range
.
length
=
~
0u
;
...
...
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