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
6d4c1931
Commit
6d4c1931
authored
Nov 14, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Added IDispatchEx support for IXMLDOMImplementation.
parent
b6d3068c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
4 deletions
+30
-4
domimpl.c
dlls/msxml3/domimpl.c
+20
-4
domdoc.c
dlls/msxml3/tests/domdoc.c
+10
-0
No files found.
dlls/msxml3/domimpl.c
View file @
6d4c1931
...
...
@@ -44,6 +44,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(msxml);
typedef
struct
_domimpl
{
DispatchEx
dispex
;
IXMLDOMImplementation
IXMLDOMImplementation_iface
;
LONG
ref
;
}
domimpl
;
...
...
@@ -67,6 +68,10 @@ static HRESULT WINAPI dimimpl_QueryInterface(
{
*
ppvObject
=
iface
;
}
else
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppvObject
))
{
return
*
ppvObject
?
S_OK
:
E_NOINTERFACE
;
}
else
{
TRACE
(
"Unsupported interface %s
\n
"
,
debugstr_guid
(
riid
));
...
...
@@ -97,6 +102,7 @@ static ULONG WINAPI dimimpl_Release(
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
release_dispex
(
&
This
->
dispex
);
heap_free
(
This
);
}
...
...
@@ -122,13 +128,10 @@ static HRESULT WINAPI dimimpl_GetTypeInfo(
ITypeInfo
**
ppTInfo
)
{
domimpl
*
This
=
impl_from_IXMLDOMImplementation
(
iface
);
HRESULT
hr
;
TRACE
(
"(%p)->(%u %u %p)
\n
"
,
This
,
iTInfo
,
lcid
,
ppTInfo
);
hr
=
get_typeinfo
(
IXMLDOMImplementation_tid
,
ppTInfo
);
return
hr
;
return
get_typeinfo
(
IXMLDOMImplementation_tid
,
ppTInfo
);
}
static
HRESULT
WINAPI
dimimpl_GetIDsOfNames
(
...
...
@@ -220,6 +223,18 @@ static const struct IXMLDOMImplementationVtbl dimimpl_vtbl =
dimimpl_hasFeature
};
static
const
tid_t
dimimpl_iface_tids
[]
=
{
IXMLDOMImplementation_tid
,
0
};
static
dispex_static_data_t
dimimpl_dispex
=
{
NULL
,
IXMLDOMImplementation_tid
,
NULL
,
dimimpl_iface_tids
};
IUnknown
*
create_doc_Implementation
(
void
)
{
domimpl
*
This
;
...
...
@@ -230,6 +245,7 @@ IUnknown* create_doc_Implementation(void)
This
->
IXMLDOMImplementation_iface
.
lpVtbl
=
&
dimimpl_vtbl
;
This
->
ref
=
1
;
init_dispex
(
&
This
->
dispex
,
(
IUnknown
*
)
&
This
->
IXMLDOMImplementation_iface
,
&
dimimpl_dispex
);
return
(
IUnknown
*
)
&
This
->
IXMLDOMImplementation_iface
;
}
...
...
dlls/msxml3/tests/domdoc.c
View file @
6d4c1931
...
...
@@ -10507,6 +10507,7 @@ static const DOMNodeType dispex_types_test[] =
static
void
test_dispex
(
void
)
{
const
DOMNodeType
*
type
=
dispex_types_test
;
IXMLDOMImplementation
*
impl
;
IXMLDOMNodeList
*
node_list
;
IXMLDOMParseError
*
error
;
IXMLDOMNamedNodeMap
*
map
;
...
...
@@ -10612,6 +10613,15 @@ static void test_dispex(void)
IXMLDOMNamedNodeMap_Release
(
map
);
IXMLDOMElement_Release
(
elem
);
/* IXMLDOMImplementation */
hr
=
IXMLDOMDocument_get_implementation
(
doc
,
&
impl
);
EXPECT_HR
(
hr
,
S_OK
);
hr
=
IXMLDOMImplementation_QueryInterface
(
impl
,
&
IID_IDispatchEx
,
(
void
**
)
&
dispex
);
EXPECT_HR
(
hr
,
S_OK
);
IDispatchEx_Release
(
dispex
);
IXMLDOMImplementation_Release
(
impl
);
IXMLDOMDocument_Release
(
doc
);
/* IXMLHTTPRequest */
...
...
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