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
11b24354
Commit
11b24354
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 ifaces instead of vtbl pointers in xmlnodemap.
parent
41ac7a3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
nodemap.c
dlls/msxml3/nodemap.c
+13
-13
No files found.
dlls/msxml3/nodemap.c
View file @
11b24354
...
...
@@ -40,8 +40,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(msxml);
typedef
struct
_xmlnodemap
{
const
struct
IXMLDOMNamedNodeMapVtbl
*
lpVtbl
;
const
struct
ISupportErrorInfoVtbl
*
lpSEIVtbl
;
IXMLDOMNamedNodeMap
IXMLDOMNamedNodeMap_iface
;
ISupportErrorInfo
ISupportErrorInfo_iface
;
LONG
ref
;
IXMLDOMNode
*
node
;
LONG
iterator
;
...
...
@@ -49,12 +49,12 @@ typedef struct _xmlnodemap
static
inline
xmlnodemap
*
impl_from_IXMLDOMNamedNodeMap
(
IXMLDOMNamedNodeMap
*
iface
)
{
return
(
xmlnodemap
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
xmlnodemap
,
lpVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
xmlnodemap
,
IXMLDOMNamedNodeMap_iface
);
}
static
inline
xmlnodemap
*
impl_from_ISupportErrorInfo
(
ISupportErrorInfo
*
iface
)
{
return
(
xmlnodemap
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
xmlnodemap
,
lpSEIVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
xmlnodemap
,
ISupportErrorInfo_iface
);
}
static
HRESULT
WINAPI
xmlnodemap_QueryInterface
(
...
...
@@ -72,7 +72,7 @@ static HRESULT WINAPI xmlnodemap_QueryInterface(
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_ISupportErrorInfo
))
{
*
ppvObject
=
&
This
->
lpSEIVtbl
;
*
ppvObject
=
&
This
->
ISupportErrorInfo_iface
;
}
else
{
...
...
@@ -172,8 +172,8 @@ static HRESULT WINAPI xmlnodemap_Invoke(
hr
=
get_typeinfo
(
IXMLDOMNamedNodeMap_tid
,
&
typeinfo
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
ITypeInfo_Invoke
(
typeinfo
,
&
(
This
->
lpVtbl
),
dispIdMember
,
wFlags
,
pDispParam
s
,
pVarResult
,
pExcepInfo
,
puArgErr
);
hr
=
ITypeInfo_Invoke
(
typeinfo
,
&
This
->
IXMLDOMNamedNodeMap_iface
,
dispIdMember
,
wFlag
s
,
p
DispParams
,
p
VarResult
,
pExcepInfo
,
puArgErr
);
ITypeInfo_Release
(
typeinfo
);
}
...
...
@@ -513,21 +513,21 @@ static HRESULT WINAPI support_error_QueryInterface(
{
xmlnodemap
*
This
=
impl_from_ISupportErrorInfo
(
iface
);
TRACE
(
"%p %s %p
\n
"
,
iface
,
debugstr_guid
(
riid
),
ppvObject
);
return
IXMLDOMNamedNodeMap_QueryInterface
(
(
IXMLDOMNamedNodeMap
*
)
&
This
->
lpVtbl
,
riid
,
ppvObject
);
return
IXMLDOMNamedNodeMap_QueryInterface
(
&
This
->
IXMLDOMNamedNodeMap_iface
,
riid
,
ppvObject
);
}
static
ULONG
WINAPI
support_error_AddRef
(
ISupportErrorInfo
*
iface
)
{
xmlnodemap
*
This
=
impl_from_ISupportErrorInfo
(
iface
);
return
IXMLDOMNamedNodeMap_AddRef
(
(
IXMLDOMNamedNodeMap
*
)
&
This
->
lpVtbl
);
return
IXMLDOMNamedNodeMap_AddRef
(
&
This
->
IXMLDOMNamedNodeMap_iface
);
}
static
ULONG
WINAPI
support_error_Release
(
ISupportErrorInfo
*
iface
)
{
xmlnodemap
*
This
=
impl_from_ISupportErrorInfo
(
iface
);
return
IXMLDOMNamedNodeMap_Release
(
(
IXMLDOMNamedNodeMap
*
)
&
This
->
lpVtbl
);
return
IXMLDOMNamedNodeMap_Release
(
&
This
->
IXMLDOMNamedNodeMap_iface
);
}
static
HRESULT
WINAPI
support_error_InterfaceSupportsErrorInfo
(
...
...
@@ -554,8 +554,8 @@ IXMLDOMNamedNodeMap *create_nodemap( IXMLDOMNode *node )
if
(
!
nodemap
)
return
NULL
;
nodemap
->
lpVtbl
=
&
xmlnodemap_vtbl
;
nodemap
->
lpSEI
Vtbl
=
&
support_error_vtbl
;
nodemap
->
IXMLDOMNamedNodeMap_iface
.
lpVtbl
=
&
xmlnodemap_vtbl
;
nodemap
->
ISupportErrorInfo_iface
.
lp
Vtbl
=
&
support_error_vtbl
;
nodemap
->
node
=
node
;
nodemap
->
ref
=
1
;
nodemap
->
iterator
=
0
;
...
...
@@ -563,7 +563,7 @@ IXMLDOMNamedNodeMap *create_nodemap( IXMLDOMNode *node )
IXMLDOMNode_AddRef
(
node
);
/* Since we AddRef a node here, we don't need to call xmldoc_add_ref() */
return
(
IXMLDOMNamedNodeMap
*
)
&
nodemap
->
lpVtbl
;
return
&
nodemap
->
IXMLDOMNamedNodeMap_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