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
a9d8f9a0
Commit
a9d8f9a0
authored
Nov 19, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Fix support for IXMLDOMDocument3.
parent
b26ad412
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
14 deletions
+13
-14
dispex.c
dlls/msxml3/dispex.c
+1
-0
domdoc.c
dlls/msxml3/domdoc.c
+10
-13
msxml_private.h
dlls/msxml3/msxml_private.h
+1
-0
domdoc.c
dlls/msxml3/tests/domdoc.c
+1
-1
No files found.
dlls/msxml3/dispex.c
View file @
a9d8f9a0
...
...
@@ -117,6 +117,7 @@ static tid_id_t tid_ids[] = {
{
&
IID_IXMLDOMComment
,
LibXml2
},
{
&
IID_IXMLDOMDocument
,
LibXml2
},
{
&
IID_IXMLDOMDocument2
,
LibXml2
},
{
&
IID_IXMLDOMDocument3
,
LibXml2
},
{
&
IID_IXMLDOMDocumentFragment
,
LibXml2
},
{
&
IID_IXMLDOMDocumentType
,
LibXml2
},
{
&
IID_IXMLDOMElement
,
LibXml2
},
...
...
dlls/msxml3/domdoc.c
View file @
a9d8f9a0
...
...
@@ -813,6 +813,7 @@ static const tid_t domdoc_se_tids[] = {
IXMLDOMNode_tid
,
IXMLDOMDocument_tid
,
IXMLDOMDocument2_tid
,
IXMLDOMDocument3_tid
,
0
};
...
...
@@ -926,13 +927,10 @@ static HRESULT WINAPI domdoc_GetTypeInfo(
UINT
iTInfo
,
LCID
lcid
,
ITypeInfo
**
ppTInfo
)
{
domdoc
*
This
=
impl_from_IXMLDOMDocument3
(
iface
);
HRESULT
hr
;
TRACE
(
"(%p)->(%u %u %p)
\n
"
,
This
,
iTInfo
,
lcid
,
ppTInfo
);
hr
=
get_typeinfo
(
IXMLDOMDocument2_tid
,
ppTInfo
);
return
hr
;
return
get_typeinfo
(
IXMLDOMDocument3_tid
,
ppTInfo
);
}
static
HRESULT
WINAPI
domdoc_GetIDsOfNames
(
...
...
@@ -953,7 +951,7 @@ static HRESULT WINAPI domdoc_GetIDsOfNames(
if
(
!
rgszNames
||
cNames
==
0
||
!
rgDispId
)
return
E_INVALIDARG
;
hr
=
get_typeinfo
(
IXMLDOMDocument
2
_tid
,
&
typeinfo
);
hr
=
get_typeinfo
(
IXMLDOMDocument
3
_tid
,
&
typeinfo
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
ITypeInfo_GetIDsOfNames
(
typeinfo
,
rgszNames
,
cNames
,
rgDispId
);
...
...
@@ -982,7 +980,7 @@ static HRESULT WINAPI domdoc_Invoke(
TRACE
(
"(%p)->(%d %s %d %d %p %p %p %p)
\n
"
,
This
,
dispIdMember
,
debugstr_guid
(
riid
),
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
hr
=
get_typeinfo
(
IXMLDOMDocument
2
_tid
,
&
typeinfo
);
hr
=
get_typeinfo
(
IXMLDOMDocument
3
_tid
,
&
typeinfo
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
ITypeInfo_Invoke
(
typeinfo
,
&
This
->
IXMLDOMDocument3_iface
,
dispIdMember
,
wFlags
,
...
...
@@ -2378,7 +2376,7 @@ static HRESULT WINAPI domdoc_save(
case
VT_UNKNOWN
:
{
IUnknown
*
pUnk
=
V_UNKNOWN
(
&
destination
);
IXMLDOMDocument
2
*
document
;
IXMLDOMDocument
3
*
document
;
IStream
*
stream
;
ret
=
IUnknown_QueryInterface
(
pUnk
,
&
IID_IXMLDOMDocument3
,
(
void
**
)
&
document
);
...
...
@@ -3011,7 +3009,7 @@ static HRESULT WINAPI domdoc_importNode(
return
E_NOTIMPL
;
}
static
const
struct
IXMLDOMDocument3Vtbl
domdoc_v
tbl
=
static
const
struct
IXMLDOMDocument3Vtbl
XMLDOMDocument3V
tbl
=
{
domdoc_QueryInterface
,
domdoc_AddRef
,
...
...
@@ -3412,14 +3410,13 @@ static const IObjectSafetyVtbl domdocObjectSafetyVtbl = {
};
static
const
tid_t
domdoc_iface_tids
[]
=
{
IXMLDOMNode_tid
,
IXMLDOMDocument_tid
,
IXMLDOMDocument2_tid
,
IXMLDOMDocument3_tid
,
0
};
static
dispex_static_data_t
domdoc_dispex
=
{
NULL
,
IXMLDOMDocument
2
_tid
,
IXMLDOMDocument
3
_tid
,
NULL
,
domdoc_iface_tids
};
...
...
@@ -3432,7 +3429,7 @@ HRESULT get_domdoc_from_xmldoc(xmlDocPtr xmldoc, IXMLDOMDocument3 **document)
if
(
!
doc
)
return
E_OUTOFMEMORY
;
doc
->
IXMLDOMDocument3_iface
.
lpVtbl
=
&
domdoc_v
tbl
;
doc
->
IXMLDOMDocument3_iface
.
lpVtbl
=
&
XMLDOMDocument3V
tbl
;
doc
->
IPersistStreamInit_iface
.
lpVtbl
=
&
xmldoc_IPersistStreamInit_VTable
;
doc
->
IObjectWithSite_iface
.
lpVtbl
=
&
domdocObjectSite
;
doc
->
IObjectSafety_iface
.
lpVtbl
=
&
domdocObjectSafetyVtbl
;
...
...
dlls/msxml3/msxml_private.h
View file @
a9d8f9a0
...
...
@@ -44,6 +44,7 @@ typedef enum tid_t {
IXMLDOMComment_tid
,
IXMLDOMDocument_tid
,
IXMLDOMDocument2_tid
,
IXMLDOMDocument3_tid
,
IXMLDOMDocumentFragment_tid
,
IXMLDOMDocumentType_tid
,
IXMLDOMElement_tid
,
...
...
dlls/msxml3/tests/domdoc.c
View file @
a9d8f9a0
...
...
@@ -10712,7 +10712,7 @@ static const supporterror_t supporterror_test[] = {
static
void
test_supporterrorinfo
(
void
)
{
static
REFIID
iids
[
3
]
=
{
&
IID_IXMLDOMDocument
,
&
IID_IXMLDOMDocument2
};
static
REFIID
iids
[
4
]
=
{
&
IID_IXMLDOMDocument
,
&
IID_IXMLDOMDocument2
,
&
IID_IXMLDOMDocument3
};
const
supporterror_t
*
ptr
=
supporterror_test
;
ISupportErrorInfo
*
errorinfo
,
*
info2
;
IXMLDOMDocument
*
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