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
9ceb5a3e
Commit
9ceb5a3e
authored
Feb 26, 2007
by
Huw Davies
Committed by
Alexandre Julliard
Feb 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Convert the domdoc object to use the IXMLDOMDocument2 interface.
parent
94a0a901
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletion
+29
-1
domdoc.c
dlls/msxml3/domdoc.c
+0
-0
domdoc.c
dlls/msxml3/tests/domdoc.c
+29
-1
No files found.
dlls/msxml3/domdoc.c
View file @
9ceb5a3e
This diff is collapsed.
Click to expand it.
dlls/msxml3/tests/domdoc.c
View file @
9ceb5a3e
...
...
@@ -29,7 +29,8 @@
#include "wine/test.h"
const
CLSID
CLSID_DOMDocument2
=
{
0xf6d90f11
,
0x9c73
,
0x11d3
,
{
0xb3
,
0x2e
,
0x00
,
0xc0
,
0x4f
,
0x99
,
0x0b
,
0xb4
}};
const
CLSID
CLSID_DOMDocument2
=
{
0xf6d90f11
,
0x9c73
,
0x11d3
,
{
0xb3
,
0x2e
,
0x00
,
0xc0
,
0x4f
,
0x99
,
0x0b
,
0xb4
}};
const
IID
IID_IXMLDOMDocument2
=
{
0x2933bf95
,
0x7b36
,
0x11d2
,
{
0xb2
,
0x0e
,
0x00
,
0xc0
,
0x4f
,
0x98
,
0x3e
,
0x60
}};
static
const
WCHAR
szEmpty
[]
=
{
0
};
static
const
WCHAR
szIncomplete
[]
=
{
...
...
@@ -1154,6 +1155,32 @@ static void test_XMLHTTP(void)
SysFreeString
(
bstrResponse
);
}
static
void
test_IXMLDOMDocument2
(
void
)
{
HRESULT
r
;
VARIANT_BOOL
b
;
BSTR
str
;
IXMLDOMDocument
*
doc
;
IXMLDOMDocument2
*
doc2
;
r
=
CoCreateInstance
(
&
CLSID_DOMDocument
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IXMLDOMDocument
,
(
LPVOID
*
)
&
doc
);
if
(
r
!=
S_OK
)
return
;
str
=
SysAllocString
(
szComplete4
);
r
=
IXMLDOMDocument_loadXML
(
doc
,
str
,
&
b
);
ok
(
r
==
S_OK
,
"loadXML failed
\n
"
);
ok
(
b
==
VARIANT_TRUE
,
"failed to load XML string
\n
"
);
SysFreeString
(
str
);
r
=
IXMLDOMDocument_QueryInterface
(
doc
,
&
IID_IXMLDOMDocument2
,
(
void
**
)
&
doc2
);
ok
(
r
==
S_OK
,
"ret %08x
\n
"
,
r
);
ok
(
doc
==
(
IXMLDOMDocument
*
)
doc2
,
"interfaces differ
\n
"
);
IXMLDOMDocument2_Release
(
doc2
);
IXMLDOMDocument_Release
(
doc
);
}
START_TEST
(
domdoc
)
{
HRESULT
r
;
...
...
@@ -1170,6 +1197,7 @@ START_TEST(domdoc)
test_get_childNodes
();
test_removeChild
();
test_XMLHTTP
();
test_IXMLDOMDocument2
();
CoUninitialize
();
}
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