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
25df7aac
Commit
25df7aac
authored
Dec 16, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Use an iface instead of a vtbl pointer in domelem.
parent
73b08ed2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
element.c
dlls/msxml3/element.c
+9
-9
No files found.
dlls/msxml3/element.c
View file @
25df7aac
...
...
@@ -44,13 +44,13 @@ static const xmlChar DT_nsURI[] = "urn:schemas-microsoft-com:datatypes";
typedef
struct
_domelem
{
xmlnode
node
;
const
struct
IXMLDOMElementVtbl
*
lpVtbl
;
IXMLDOMElement
IXMLDOMElement_iface
;
LONG
ref
;
}
domelem
;
static
inline
domelem
*
impl_from_IXMLDOMElement
(
IXMLDOMElement
*
iface
)
{
return
(
domelem
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
domelem
,
lpVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
domelem
,
IXMLDOMElement_iface
);
}
static
inline
xmlNodePtr
get_element
(
const
domelem
*
This
)
...
...
@@ -72,7 +72,7 @@ static HRESULT WINAPI domelem_QueryInterface(
IsEqualGUID
(
riid
,
&
IID_IDispatch
)
||
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
)
{
*
ppvObject
=
&
This
->
lpVtbl
;
*
ppvObject
=
&
This
->
IXMLDOMElement_iface
;
}
else
if
(
node_query_interface
(
&
This
->
node
,
riid
,
ppvObject
))
{
...
...
@@ -184,8 +184,8 @@ static HRESULT WINAPI domelem_Invoke(
hr
=
get_typeinfo
(
IXMLDOMElement_tid
,
&
typeinfo
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
ITypeInfo_Invoke
(
typeinfo
,
&
(
This
->
lpVtbl
),
dispIdMember
,
wFlags
,
pDispParam
s
,
pVarResult
,
pExcepInfo
,
puArgErr
);
hr
=
ITypeInfo_Invoke
(
typeinfo
,
&
This
->
IXMLDOMElement_iface
,
dispIdMember
,
wFlag
s
,
p
DispParams
,
p
VarResult
,
pExcepInfo
,
puArgErr
);
ITypeInfo_Release
(
typeinfo
);
}
...
...
@@ -314,7 +314,7 @@ static HRESULT WINAPI domelem_get_attributes(
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
attributeMap
);
*
attributeMap
=
create_nodemap
((
IXMLDOMNode
*
)
&
This
->
lpVtbl
);
*
attributeMap
=
create_nodemap
((
IXMLDOMNode
*
)
&
This
->
IXMLDOMElement_iface
);
return
S_OK
;
}
...
...
@@ -1333,12 +1333,12 @@ IUnknown* create_element( xmlNodePtr element )
if
(
!
This
)
return
NULL
;
This
->
lpVtbl
=
&
domelem_vtbl
;
This
->
IXMLDOMElement_iface
.
lpVtbl
=
&
domelem_vtbl
;
This
->
ref
=
1
;
init_xmlnode
(
&
This
->
node
,
element
,
(
IXMLDOMNode
*
)
&
This
->
lpVtbl
,
&
domelem_dispex
);
init_xmlnode
(
&
This
->
node
,
element
,
(
IXMLDOMNode
*
)
&
This
->
IXMLDOMElement_iface
,
&
domelem_dispex
);
return
(
IUnknown
*
)
&
This
->
lpVtbl
;
return
(
IUnknown
*
)
&
This
->
IXMLDOMElement_iface
;
}
#endif
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