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
06d54a6e
Commit
06d54a6e
authored
Feb 12, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use get_elem helper in IHTMLDocument2::get_body implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0666c6c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
htmldoc.c
dlls/mshtml/htmldoc.c
+4
-5
No files found.
dlls/mshtml/htmldoc.c
View file @
06d54a6e
...
...
@@ -261,7 +261,7 @@ static HRESULT WINAPI HTMLDocument_get_body(IHTMLDocument2 *iface, IHTMLElement
{
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
nsIDOMHTMLElement
*
nsbody
=
NULL
;
HTML
DOMNode
*
node
;
HTML
Element
*
element
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
@@ -281,14 +281,13 @@ static HRESULT WINAPI HTMLDocument_get_body(IHTMLDocument2 *iface, IHTMLElement
return
S_OK
;
}
hres
=
get_
node
(
This
->
doc_node
,
(
nsIDOMNode
*
)
nsbody
,
TRUE
,
&
node
);
hres
=
get_
elem
(
This
->
doc_node
,
(
nsIDOMElement
*
)
nsbody
,
&
element
);
nsIDOMHTMLElement_Release
(
nsbody
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
IHTMLDOMNode_QueryInterface
(
&
node
->
IHTMLDOMNode_iface
,
&
IID_IHTMLElement
,
(
void
**
)
p
);
node_release
(
node
);
return
hres
;
*
p
=
&
element
->
IHTMLElement_iface
;
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLDocument_get_activeElement
(
IHTMLDocument2
*
iface
,
IHTMLElement
**
p
)
...
...
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