Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
0770ba61
Commit
0770ba61
authored
Oct 03, 2023
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Oct 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: IXMLDOMElement::selectSingleNode always assign a value to the output parameter.
parent
c237db98
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
node.c
dlls/msxml3/node.c
+3
-0
domdoc.c
dlls/msxml3/tests/domdoc.c
+5
-0
No files found.
dlls/msxml3/node.c
View file @
0770ba61
...
...
@@ -1560,6 +1560,9 @@ HRESULT node_select_singlenode(const xmlnode *This, BSTR query, IXMLDOMNode **no
IXMLDOMNodeList
*
list
;
HRESULT
hr
;
if
(
node
)
*
node
=
NULL
;
hr
=
node_select_nodes
(
This
,
query
,
&
list
);
if
(
hr
==
S_OK
)
{
...
...
dlls/msxml3/tests/domdoc.c
View file @
0770ba61
...
...
@@ -2516,6 +2516,11 @@ static void test_domnode( void )
ok
(
hr
==
S_FALSE
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
node
==
NULL
,
"node %p
\n
"
,
node
);
node
=
(
void
*
)
0xdeadbeef
;
hr
=
IXMLDOMElement_selectSingleNode
(
element
,
_bstr_
(
"In Valid"
),
&
node
);
ok
(
hr
==
E_FAIL
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
node
==
NULL
,
"node %p
\n
"
,
node
);
str
=
SysAllocString
(
L"bs"
);
hr
=
IXMLDOMElement_selectSingleNode
(
element
,
str
,
&
node
);
SysFreeString
(
str
);
...
...
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