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
954cb314
Commit
954cb314
authored
Sep 03, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Sep 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Add IDispatchEx support to IXMLDOMDocument2.
parent
c6a64414
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
0 deletions
+27
-0
dispex.c
dlls/msxml3/dispex.c
+1
-0
domdoc.c
dlls/msxml3/domdoc.c
+25
-0
msxml_private.h
dlls/msxml3/msxml_private.h
+1
-0
No files found.
dlls/msxml3/dispex.c
View file @
954cb314
...
...
@@ -79,6 +79,7 @@ static REFIID tid_ids[] = {
&
IID_IXMLDOMAttribute
,
&
IID_IXMLDOMCDATASection
,
&
IID_IXMLDOMComment
,
&
IID_IXMLDOMDocument
,
&
IID_IXMLDOMDocument2
,
&
IID_IXMLDOMDocumentFragment
,
&
IID_IXMLDOMElement
,
...
...
dlls/msxml3/domdoc.c
View file @
954cb314
...
...
@@ -36,6 +36,7 @@
#include "shlwapi.h"
#include "ocidl.h"
#include "objsafe.h"
#include "dispex.h"
#include "wine/debug.h"
...
...
@@ -75,6 +76,9 @@ typedef struct _domdoc
/* IObjectSafety */
DWORD
safeopt
;
/* IDispatchEx */
DispatchEx
dispex
;
}
domdoc
;
static
xmlDocPtr
doparse
(
char
*
ptr
,
int
len
)
...
...
@@ -290,6 +294,10 @@ static HRESULT WINAPI domdoc_QueryInterface( IXMLDOMDocument2 *iface, REFIID rii
{
*
ppvObject
=
(
IObjectWithSite
*
)
&
(
This
->
lpvtblIObjectWithSite
);
}
else
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppvObject
))
{
return
*
ppvObject
?
S_OK
:
E_NOINTERFACE
;
}
else
if
(
IsEqualGUID
(
&
IID_IRunnableObject
,
riid
))
{
TRACE
(
"IID_IRunnableObject not supported returning NULL
\n
"
);
...
...
@@ -1967,6 +1975,20 @@ static const IObjectSafetyVtbl domdocObjectSafetyVtbl = {
xmldoc_Safety_SetInterfaceSafetyOptions
};
static
const
tid_t
domdoc_iface_tids
[]
=
{
IXMLDOMNode_tid
,
IXMLDOMDocument_tid
,
IXMLDOMDocument2_tid
,
0
};
static
dispex_static_data_t
domdoc_dispex
=
{
NULL
,
IXMLDOMDocument2_tid
,
NULL
,
domdoc_iface_tids
};
HRESULT
DOMDocument_create_from_xmldoc
(
xmlDocPtr
xmldoc
,
IXMLDOMDocument2
**
document
)
{
domdoc
*
doc
;
...
...
@@ -2007,6 +2029,9 @@ HRESULT DOMDocument_create_from_xmldoc(xmlDocPtr xmldoc, IXMLDOMDocument2 **docu
HeapFree
(
GetProcessHeap
(),
0
,
doc
);
return
E_FAIL
;
}
init_dispex
(
&
doc
->
dispex
,
(
IUnknown
*
)
&
doc
->
lpVtbl
,
&
domdoc_dispex
);
/* The ref on doc->node is actually looped back into this object, so release it */
IXMLDOMNode_Release
(
doc
->
node
);
...
...
dlls/msxml3/msxml_private.h
View file @
954cb314
...
...
@@ -107,6 +107,7 @@ typedef enum tid_t {
IXMLDOMAttribute_tid
,
IXMLDOMCDATASection_tid
,
IXMLDOMComment_tid
,
IXMLDOMDocument_tid
,
IXMLDOMDocument2_tid
,
IXMLDOMDocumentFragment_tid
,
IXMLDOMElement_tid
,
...
...
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