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
80995b68
Commit
80995b68
authored
Nov 23, 2009
by
Marcus Meissner
Committed by
Alexandre Julliard
Nov 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Fix NULL ptr checking in domdoc test (Coverity).
parent
fa7c2b5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
domdoc.c
dlls/msxml3/tests/domdoc.c
+12
-14
No files found.
dlls/msxml3/tests/domdoc.c
View file @
80995b68
...
...
@@ -1030,6 +1030,10 @@ static void test_domnode( void )
CLSCTX_INPROC_SERVER
,
&
IID_IXMLDOMDocument
,
(
LPVOID
*
)
&
doc
);
if
(
r
!=
S_OK
)
return
;
if
(
!
doc
)
{
ok
(
FALSE
,
"no document
\n
"
);
return
;
}
b
=
FALSE
;
str
=
SysAllocString
(
szComplete4
);
...
...
@@ -1038,19 +1042,14 @@ static void test_domnode( void )
ok
(
b
==
VARIANT_TRUE
,
"failed to load XML string
\n
"
);
SysFreeString
(
str
);
if
(
doc
)
{
b
=
1
;
r
=
IXMLDOMNode_hasChildNodes
(
doc
,
&
b
);
ok
(
r
==
S_OK
,
"hasChildNoes bad return
\n
"
);
ok
(
b
==
VARIANT_TRUE
,
"hasChildNoes wrong result
\n
"
);
b
=
1
;
r
=
IXMLDOMNode_hasChildNodes
(
doc
,
&
b
);
ok
(
r
==
S_OK
,
"hasChildNoes bad return
\n
"
);
ok
(
b
==
VARIANT_TRUE
,
"hasChildNoes wrong result
\n
"
);
r
=
IXMLDOMDocument_get_documentElement
(
doc
,
&
element
);
ok
(
r
==
S_OK
,
"should be a document element
\n
"
);
ok
(
element
!=
NULL
,
"should be an element
\n
"
);
}
else
ok
(
FALSE
,
"no document
\n
"
);
r
=
IXMLDOMDocument_get_documentElement
(
doc
,
&
element
);
ok
(
r
==
S_OK
,
"should be a document element
\n
"
);
ok
(
element
!=
NULL
,
"should be an element
\n
"
);
VariantInit
(
&
var
);
ok
(
V_VT
(
&
var
)
==
VT_EMPTY
,
"variant init failed
\n
"
);
...
...
@@ -1439,8 +1438,7 @@ todo_wine
if
(
element
)
IXMLDOMElement_Release
(
element
);
if
(
doc
)
ok
(
IXMLDOMDocument_Release
(
doc
)
==
0
,
"document is not destroyed
\n
"
);
ok
(
IXMLDOMDocument_Release
(
doc
)
==
0
,
"document is not destroyed
\n
"
);
}
static
void
test_refs
(
void
)
...
...
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