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
a307901a
Commit
a307901a
authored
Jul 18, 2006
by
Huw Davies
Committed by
Alexandre Julliard
Jul 19, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: removeChild should catch a NULL child node.
parent
120e808f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
node.c
dlls/msxml3/node.c
+3
-0
domdoc.c
dlls/msxml3/tests/domdoc.c
+3
-0
No files found.
dlls/msxml3/node.c
View file @
a307901a
...
...
@@ -452,6 +452,9 @@ static HRESULT WINAPI xmlnode_removeChild(
TRACE
(
"%p->(%p, %p)
\n
"
,
This
,
childNode
,
oldChild
);
*
oldChild
=
NULL
;
if
(
!
childNode
)
return
E_INVALIDARG
;
hr
=
IXMLDOMNode_QueryInterface
(
childNode
,
&
IID_IXMLDOMNode
,
(
LPVOID
)
&
child
);
if
(
FAILED
(
hr
))
return
hr
;
...
...
dlls/msxml3/tests/domdoc.c
View file @
a307901a
...
...
@@ -1054,6 +1054,9 @@ static void test_removeChild(void)
r
=
IXMLDOMNodeList_get_item
(
node_list
,
0
,
&
node4
);
ok
(
r
==
S_OK
,
"ret %08lx
\n
"
,
r
);
r
=
IXMLDOMElement_removeChild
(
element
,
NULL
,
&
node2
);
ok
(
r
==
E_INVALIDARG
,
"ret %08lx
\n
"
,
r
);
r
=
IXMLDOMElement_removeChild
(
element
,
node4
,
&
node2
);
ok
(
r
==
S_OK
,
"ret %08lx
\n
"
,
r
);
ok
(
node4
==
node2
,
"node %p node2 %p
\n
"
,
node4
,
node2
);
...
...
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