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
0c5492aa
Commit
0c5492aa
authored
Dec 23, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Use ifaces instead of vtbl pointers in xmldoc.
parent
623abfca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
xmldoc.c
dlls/msxml3/xmldoc.c
+13
-13
No files found.
dlls/msxml3/xmldoc.c
View file @
0c5492aa
...
@@ -48,8 +48,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(msxml);
...
@@ -48,8 +48,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(msxml);
typedef
struct
_xmldoc
typedef
struct
_xmldoc
{
{
const
IXMLDocumentVtbl
*
lpVtbl
;
IXMLDocument
IXMLDocument_iface
;
const
IPersistStreamInitVtbl
*
lpvtblIPersistStreamInit
;
IPersistStreamInit
IPersistStreamInit_iface
;
LONG
ref
;
LONG
ref
;
HRESULT
error
;
HRESULT
error
;
...
@@ -62,12 +62,12 @@ typedef struct _xmldoc
...
@@ -62,12 +62,12 @@ typedef struct _xmldoc
static
inline
xmldoc
*
impl_from_IXMLDocument
(
IXMLDocument
*
iface
)
static
inline
xmldoc
*
impl_from_IXMLDocument
(
IXMLDocument
*
iface
)
{
{
return
(
xmldoc
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
xmldoc
,
lpVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
xmldoc
,
IXMLDocument_iface
);
}
}
static
inline
xmldoc
*
impl_from_IPersistStreamInit
(
IPersistStreamInit
*
iface
)
static
inline
xmldoc
*
impl_from_IPersistStreamInit
(
IPersistStreamInit
*
iface
)
{
{
return
(
xmldoc
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
xmldoc
,
lpvtblIPersistStreamInit
)
);
return
CONTAINING_RECORD
(
iface
,
xmldoc
,
IPersistStreamInit_iface
);
}
}
static
HRESULT
WINAPI
xmldoc_QueryInterface
(
IXMLDocument
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
static
HRESULT
WINAPI
xmldoc_QueryInterface
(
IXMLDocument
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
...
@@ -85,7 +85,7 @@ static HRESULT WINAPI xmldoc_QueryInterface(IXMLDocument *iface, REFIID riid, vo
...
@@ -85,7 +85,7 @@ static HRESULT WINAPI xmldoc_QueryInterface(IXMLDocument *iface, REFIID riid, vo
else
if
(
IsEqualGUID
(
&
IID_IPersistStreamInit
,
riid
)
||
else
if
(
IsEqualGUID
(
&
IID_IPersistStreamInit
,
riid
)
||
IsEqualGUID
(
&
IID_IPersistStream
,
riid
))
IsEqualGUID
(
&
IID_IPersistStream
,
riid
))
{
{
*
ppvObject
=
&
(
This
->
lpvtblIPersistStreamInit
)
;
*
ppvObject
=
&
This
->
IPersistStreamInit_iface
;
}
}
else
else
{
{
...
@@ -186,8 +186,8 @@ static HRESULT WINAPI xmldoc_Invoke(IXMLDocument *iface, DISPID dispIdMember,
...
@@ -186,8 +186,8 @@ static HRESULT WINAPI xmldoc_Invoke(IXMLDocument *iface, DISPID dispIdMember,
hr
=
get_typeinfo
(
IXMLDocument_tid
,
&
typeinfo
);
hr
=
get_typeinfo
(
IXMLDocument_tid
,
&
typeinfo
);
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
{
{
hr
=
ITypeInfo_Invoke
(
typeinfo
,
&
(
This
->
lpVtbl
),
dispIdMember
,
wFlags
,
pDispParam
s
,
hr
=
ITypeInfo_Invoke
(
typeinfo
,
&
This
->
IXMLDocument_iface
,
dispIdMember
,
wFlag
s
,
pVarResult
,
pExcepInfo
,
puArgErr
);
p
DispParams
,
p
VarResult
,
pExcepInfo
,
puArgErr
);
ITypeInfo_Release
(
typeinfo
);
ITypeInfo_Release
(
typeinfo
);
}
}
...
@@ -555,21 +555,21 @@ static HRESULT WINAPI xmldoc_IPersistStreamInit_QueryInterface(
...
@@ -555,21 +555,21 @@ static HRESULT WINAPI xmldoc_IPersistStreamInit_QueryInterface(
IPersistStreamInit
*
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
IPersistStreamInit
*
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
{
{
xmldoc
*
this
=
impl_from_IPersistStreamInit
(
iface
);
xmldoc
*
this
=
impl_from_IPersistStreamInit
(
iface
);
return
IXMLDocument_QueryInterface
(
(
IXMLDocument
*
)
this
,
riid
,
ppvObj
);
return
IXMLDocument_QueryInterface
(
&
this
->
IXMLDocument_iface
,
riid
,
ppvObj
);
}
}
static
ULONG
WINAPI
xmldoc_IPersistStreamInit_AddRef
(
static
ULONG
WINAPI
xmldoc_IPersistStreamInit_AddRef
(
IPersistStreamInit
*
iface
)
IPersistStreamInit
*
iface
)
{
{
xmldoc
*
this
=
impl_from_IPersistStreamInit
(
iface
);
xmldoc
*
this
=
impl_from_IPersistStreamInit
(
iface
);
return
IXMLDocument_AddRef
(
(
IXMLDocument
*
)
this
);
return
IXMLDocument_AddRef
(
&
this
->
IXMLDocument_iface
);
}
}
static
ULONG
WINAPI
xmldoc_IPersistStreamInit_Release
(
static
ULONG
WINAPI
xmldoc_IPersistStreamInit_Release
(
IPersistStreamInit
*
iface
)
IPersistStreamInit
*
iface
)
{
{
xmldoc
*
this
=
impl_from_IPersistStreamInit
(
iface
);
xmldoc
*
this
=
impl_from_IPersistStreamInit
(
iface
);
return
IXMLDocument_Release
(
(
IXMLDocument
*
)
this
);
return
IXMLDocument_Release
(
&
this
->
IXMLDocument_iface
);
}
}
static
HRESULT
WINAPI
xmldoc_IPersistStreamInit_GetClassID
(
static
HRESULT
WINAPI
xmldoc_IPersistStreamInit_GetClassID
(
...
@@ -702,14 +702,14 @@ HRESULT XMLDocument_create(IUnknown *pUnkOuter, LPVOID *ppObj)
...
@@ -702,14 +702,14 @@ HRESULT XMLDocument_create(IUnknown *pUnkOuter, LPVOID *ppObj)
if
(
!
doc
)
if
(
!
doc
)
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
doc
->
lpVtbl
=
&
xmldoc_vtbl
;
doc
->
IXMLDocument_iface
.
lpVtbl
=
&
xmldoc_vtbl
;
doc
->
lpvtblIPersistStreamInit
=
&
xmldoc_IPersistStreamInit_VTable
;
doc
->
IPersistStreamInit_iface
.
lpVtbl
=
&
xmldoc_IPersistStreamInit_VTable
;
doc
->
ref
=
1
;
doc
->
ref
=
1
;
doc
->
error
=
S_OK
;
doc
->
error
=
S_OK
;
doc
->
xmldoc
=
NULL
;
doc
->
xmldoc
=
NULL
;
doc
->
stream
=
NULL
;
doc
->
stream
=
NULL
;
*
ppObj
=
&
doc
->
lpVtbl
;
*
ppObj
=
&
doc
->
IXMLDocument_iface
;
TRACE
(
"returning iface %p
\n
"
,
*
ppObj
);
TRACE
(
"returning iface %p
\n
"
,
*
ppObj
);
return
S_OK
;
return
S_OK
;
...
...
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