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
3e8acbac
Commit
3e8acbac
authored
Jan 08, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3/tests: Simplify test error path.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f9e0b6a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
schema.c
dlls/msxml3/tests/schema.c
+13
-13
No files found.
dlls/msxml3/tests/schema.c
View file @
3e8acbac
...
...
@@ -666,26 +666,26 @@ static void test_collection_refs(void)
LONG
length
;
schema1
=
create_document
(
&
IID_IXMLDOMDocument2
);
schema2
=
create_document
(
&
IID_IXMLDOMDocument2
);
schema3
=
create_document
(
&
IID_IXMLDOMDocument2
);
ok
(
schema1
!=
NULL
,
"Failed to create a document.
\n
"
);
cache1
=
create_cache
(
&
IID_IXMLDOMSchemaCollection
);
cache2
=
create_cache
(
&
IID_IXMLDOMSchemaCollection
);
cache3
=
create_cache
(
&
IID_IXMLDOMSchemaCollection
);
ok
(
cache1
!=
NULL
,
"Failed to create schema collection.
\n
"
);
if
(
!
schema1
||
!
schema2
||
!
schema3
||
!
cache1
||
!
cache2
||
!
cache3
)
if
(
!
schema1
||
!
cache1
)
{
if
(
schema1
)
IXMLDOMDocument2_Release
(
schema1
);
if
(
schema2
)
IXMLDOMDocument2_Release
(
schema2
);
if
(
schema3
)
IXMLDOMDocument2_Release
(
schema3
);
if
(
cache1
)
IXMLDOMSchemaCollection_Release
(
cache1
);
if
(
cache2
)
IXMLDOMSchemaCollection_Release
(
cache2
);
if
(
cache3
)
IXMLDOMSchemaCollection_Release
(
cache2
);
if
(
schema1
)
IXMLDOMDocument2_Release
(
schema1
);
if
(
cache1
)
IXMLDOMSchemaCollection_Release
(
cache1
);
return
;
}
schema2
=
create_document
(
&
IID_IXMLDOMDocument2
);
schema3
=
create_document
(
&
IID_IXMLDOMDocument2
);
cache2
=
create_cache
(
&
IID_IXMLDOMSchemaCollection
);
cache3
=
create_cache
(
&
IID_IXMLDOMSchemaCollection
);
ole_check
(
IXMLDOMDocument2_loadXML
(
schema1
,
_bstr_
(
xdr_schema1_xml
),
&
b
));
ok
(
b
==
VARIANT_TRUE
,
"failed to load XML
\n
"
);
...
...
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