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
c515d384
Commit
c515d384
authored
Sep 27, 2010
by
Adam Martinson
Committed by
Alexandre Julliard
Sep 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3/tests: Prevent a double-free in test_get_ownerDocument().
parent
250b55c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
domdoc.c
dlls/msxml3/tests/domdoc.c
+2
-7
No files found.
dlls/msxml3/tests/domdoc.c
View file @
c515d384
...
...
@@ -5755,14 +5755,10 @@ static void test_get_ownerDocument(void)
VariantClear
(
&
var
);
/* set to XPath and check that new instances use it */
V_VT
(
&
var
)
=
VT_BSTR
;
V_BSTR
(
&
var
)
=
_bstr_
(
"XPath"
);
hr
=
IXMLDOMDocument2_setProperty
(
doc
,
_bstr_
(
"SelectionLanguage"
),
var
);
hr
=
IXMLDOMDocument2_setProperty
(
doc
,
_bstr_
(
"SelectionLanguage"
),
_variantbstr_
(
"XPath"
));
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
V_VT
(
&
var
)
=
VT_BSTR
;
V_BSTR
(
&
var
)
=
_bstr_
(
"xmlns:wi=
\'
www.winehq.org
\'
"
);
hr
=
IXMLDOMDocument2_setProperty
(
doc
,
_bstr_
(
"SelectionNamespaces"
),
var
);
hr
=
IXMLDOMDocument2_setProperty
(
doc
,
_bstr_
(
"SelectionNamespaces"
),
_variantbstr_
(
"xmlns:wi=
\'
www.winehq.org
\'
"
));
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IXMLDOMDocument2_get_firstChild
(
doc
,
&
node
);
...
...
@@ -5771,7 +5767,6 @@ static void test_get_ownerDocument(void)
hr
=
IXMLDOMNode_get_ownerDocument
(
node
,
&
doc1
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
VariantClear
(
&
var
);
hr
=
IXMLDOMDocument_QueryInterface
(
doc1
,
&
IID_IXMLDOMDocument2
,
(
void
**
)
&
doc_owner
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
doc_owner
!=
doc
,
"got %p, doc %p
\n
"
,
doc_owner
,
doc
);
...
...
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