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
fad20c9c
Commit
fad20c9c
authored
Nov 11, 2007
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Nov 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Enable test for bad argument / fix memory leak.
parent
8de2d529
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
domdoc.c
dlls/msxml3/tests/domdoc.c
+3
-5
No files found.
dlls/msxml3/tests/domdoc.c
View file @
fad20c9c
...
@@ -405,12 +405,9 @@ static void test_domdoc( void )
...
@@ -405,12 +405,9 @@ static void test_domdoc( void )
ok
(
b
==
VARIANT_TRUE
,
"failed to load XML string
\n
"
);
ok
(
b
==
VARIANT_TRUE
,
"failed to load XML string
\n
"
);
SysFreeString
(
str
);
SysFreeString
(
str
);
/* try with a null out pointer - crashes */
/* try with a null out pointer */
if
(
0
)
{
r
=
IXMLDOMDocument_get_documentElement
(
doc
,
NULL
);
r
=
IXMLDOMDocument_get_documentElement
(
doc
,
NULL
);
ok
(
r
==
S_OK
,
"should be no document element
\n
"
);
ok
(
r
==
E_INVALIDARG
,
"should be no document element
\n
"
);
}
/* check if nodename is correct */
/* check if nodename is correct */
r
=
IXMLDOMDocument_get_nodeName
(
doc
,
NULL
);
r
=
IXMLDOMDocument_get_nodeName
(
doc
,
NULL
);
...
@@ -704,6 +701,7 @@ todo_wine
...
@@ -704,6 +701,7 @@ todo_wine
r
=
IXMLDOMNode_get_baseName
(
node
,
&
str
);
r
=
IXMLDOMNode_get_baseName
(
node
,
&
str
);
ok
(
r
==
S_OK
,
"get_baseName returned wrong code
\n
"
);
ok
(
r
==
S_OK
,
"get_baseName returned wrong code
\n
"
);
ok
(
lstrcmpW
(
str
,
szdl
)
==
0
,
"basename was wrong
\n
"
);
ok
(
lstrcmpW
(
str
,
szdl
)
==
0
,
"basename was wrong
\n
"
);
SysFreeString
(
str
);
r
=
IXMLDOMNode_get_nodeValue
(
node
,
&
var
);
r
=
IXMLDOMNode_get_nodeValue
(
node
,
&
var
);
ok
(
r
==
S_OK
,
"returns %08x
\n
"
,
r
);
ok
(
r
==
S_OK
,
"returns %08x
\n
"
,
r
);
...
...
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