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
42bdbab6
Commit
42bdbab6
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 domdoctype.
parent
0be2929b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
doctype.c
dlls/msxml3/doctype.c
+9
-8
No files found.
dlls/msxml3/doctype.c
View file @
42bdbab6
...
...
@@ -41,13 +41,13 @@ WINE_DEFAULT_DEBUG_CHANNEL(msxml);
typedef
struct
_domdoctype
{
xmlnode
node
;
const
struct
IXMLDOMDocumentTypeVtbl
*
lpVtbl
;
IXMLDOMDocumentType
IXMLDOMDocumentType_iface
;
LONG
ref
;
}
domdoctype
;
static
inline
domdoctype
*
impl_from_IXMLDOMDocumentType
(
IXMLDOMDocumentType
*
iface
)
{
return
(
domdoctype
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
domdoctype
,
lpVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
domdoctype
,
IXMLDOMDocumentType_iface
);
}
static
HRESULT
WINAPI
domdoctype_QueryInterface
(
...
...
@@ -64,7 +64,7 @@ static HRESULT WINAPI domdoctype_QueryInterface(
IsEqualGUID
(
riid
,
&
IID_IDispatch
)
||
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
)
{
*
ppvObject
=
&
This
->
lpVtbl
;
*
ppvObject
=
&
This
->
IXMLDOMDocumentType_iface
;
}
else
if
(
node_query_interface
(
&
This
->
node
,
riid
,
ppvObject
))
{
...
...
@@ -176,8 +176,8 @@ static HRESULT WINAPI domdoctype_Invoke(
hr
=
get_typeinfo
(
IXMLDOMDocumentType_tid
,
&
typeinfo
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
ITypeInfo_Invoke
(
typeinfo
,
&
(
This
->
lpVtbl
),
dispIdMember
,
wFlags
,
pDispParam
s
,
pVarResult
,
pExcepInfo
,
puArgErr
);
hr
=
ITypeInfo_Invoke
(
typeinfo
,
&
This
->
IXMLDOMDocumentType_iface
,
dispIdMember
,
wFlag
s
,
p
DispParams
,
p
VarResult
,
pExcepInfo
,
puArgErr
);
ITypeInfo_Release
(
typeinfo
);
}
...
...
@@ -615,12 +615,13 @@ IUnknown* create_doc_type( xmlNodePtr doctype )
if
(
!
This
)
return
NULL
;
This
->
lpVtbl
=
&
domdoctype_vtbl
;
This
->
IXMLDOMDocumentType_iface
.
lpVtbl
=
&
domdoctype_vtbl
;
This
->
ref
=
1
;
init_xmlnode
(
&
This
->
node
,
doctype
,
(
IXMLDOMNode
*
)
&
This
->
lpVtbl
,
&
domdoctype_dispex
);
init_xmlnode
(
&
This
->
node
,
doctype
,
(
IXMLDOMNode
*
)
&
This
->
IXMLDOMDocumentType_iface
,
&
domdoctype_dispex
);
return
(
IUnknown
*
)
&
This
->
lpVtbl
;
return
(
IUnknown
*
)
&
This
->
IXMLDOMDocumentType_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