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
7b5e8497
Commit
7b5e8497
authored
Dec 08, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Properly return NULL parentElement.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
05d1618a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
htmlelem.c
dlls/mshtml/htmlelem.c
+5
-0
dom.c
dlls/mshtml/tests/dom.c
+2
-0
No files found.
dlls/mshtml/htmlelem.c
View file @
7b5e8497
...
...
@@ -848,6 +848,11 @@ static HRESULT WINAPI HTMLElement_get_parentElement(IHTMLElement *iface, IHTMLEl
if
(
FAILED
(
hres
))
return
hres
;
if
(
!
node
)
{
*
p
=
NULL
;
return
S_OK
;
}
hres
=
IHTMLDOMNode_QueryInterface
(
node
,
&
IID_IHTMLElement
,
(
void
**
)
p
);
IHTMLDOMNode_Release
(
node
);
if
(
FAILED
(
hres
))
...
...
dlls/mshtml/tests/dom.c
View file @
7b5e8497
...
...
@@ -5267,6 +5267,8 @@ static void test_insert_adjacent_elems(IHTMLDocument2 *doc, IHTMLElement *parent
static
const
elem_type_t
br_div_br
[]
=
{
ET_BR
,
ET_DIV
,
ET_BR
};
elem
=
test_create_elem
(
doc
,
"BR"
);
elem2
=
test_elem_get_parent
((
IUnknown
*
)
elem
);
ok
(
!
elem2
,
"get_parentElement returned %p
\n
"
,
elem2
);
insert_adjacent_elem
(
parent
,
"BeforeEnd"
,
elem
);
IHTMLElement_Release
(
elem
);
...
...
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