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
16c543a0
Commit
16c543a0
authored
Feb 23, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: COM cleanup for the IDispatchEx iface.
parent
b92d834d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
dispex.c
dlls/msxml3/dispex.c
+6
-8
msxml_private.h
dlls/msxml3/msxml_private.h
+1
-1
No files found.
dlls/msxml3/dispex.c
View file @
16c543a0
...
...
@@ -40,8 +40,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
msxml
);
#define DISPATCHEX(x) ((IDispatchEx*) &(x)->lpIDispatchExVtbl)
typedef
struct
{
DISPID
id
;
BSTR
name
;
...
...
@@ -306,7 +304,7 @@ static inline BOOL is_dynamic_dispid(DISPID id)
static
inline
DispatchEx
*
impl_from_IDispatchEx
(
IDispatchEx
*
iface
)
{
return
(
DispatchEx
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
DispatchEx
,
lpIDispatchExVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
DispatchEx
,
IDispatchEx_iface
);
}
static
HRESULT
WINAPI
DispatchEx_QueryInterface
(
IDispatchEx
*
iface
,
REFIID
riid
,
void
**
ppv
)
...
...
@@ -362,7 +360,7 @@ static HRESULT WINAPI DispatchEx_GetIDsOfNames(IDispatchEx *iface, REFIID riid,
lcid
,
rgDispId
);
for
(
i
=
0
;
i
<
cNames
;
i
++
)
{
hres
=
IDispatchEx_GetDispID
(
DISPATCHEX
(
This
)
,
rgszNames
[
i
],
0
,
rgDispId
+
i
);
hres
=
IDispatchEx_GetDispID
(
&
This
->
IDispatchEx_iface
,
rgszNames
[
i
],
0
,
rgDispId
+
i
);
if
(
FAILED
(
hres
))
return
hres
;
}
...
...
@@ -379,7 +377,7 @@ static HRESULT WINAPI DispatchEx_Invoke(IDispatchEx *iface, DISPID dispIdMember,
TRACE
(
"(%p)->(%d %s %d %d %p %p %p %p)
\n
"
,
This
,
dispIdMember
,
debugstr_guid
(
riid
),
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
return
IDispatchEx_InvokeEx
(
DISPATCHEX
(
This
)
,
dispIdMember
,
lcid
,
wFlags
,
return
IDispatchEx_InvokeEx
(
&
This
->
IDispatchEx_iface
,
dispIdMember
,
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
NULL
);
}
...
...
@@ -630,10 +628,10 @@ BOOL dispex_query_interface(DispatchEx *This, REFIID riid, void **ppv)
if
(
IsEqualGUID
(
&
IID_IDispatch
,
riid
))
{
TRACE
(
"(%p)->(IID_IDispatch %p)
\n
"
,
This
,
ppv
);
*
ppv
=
DISPATCHEX
(
This
)
;
*
ppv
=
&
This
->
IDispatchEx_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IDispatchEx
,
riid
))
{
TRACE
(
"(%p)->(IID_IDispatchEx %p)
\n
"
,
This
,
ppv
);
*
ppv
=
DISPATCHEX
(
This
)
;
*
ppv
=
&
This
->
IDispatchEx_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_UndocumentedScriptIface
,
riid
))
{
TRACE
(
"(%p)->(IID_UndocumentedScriptIface %p) returning NULL
\n
"
,
This
,
ppv
);
*
ppv
=
NULL
;
...
...
@@ -651,7 +649,7 @@ BOOL dispex_query_interface(DispatchEx *This, REFIID riid, void **ppv)
void
init_dispex
(
DispatchEx
*
dispex
,
IUnknown
*
outer
,
dispex_static_data_t
*
data
)
{
dispex
->
lpIDispatchEx
Vtbl
=
&
DispatchExVtbl
;
dispex
->
IDispatchEx_iface
.
lp
Vtbl
=
&
DispatchExVtbl
;
dispex
->
outer
=
outer
;
dispex
->
data
=
data
;
}
dlls/msxml3/msxml_private.h
View file @
16c543a0
...
...
@@ -144,7 +144,7 @@ typedef struct {
}
dispex_static_data_t
;
typedef
struct
{
const
IDispatchExVtbl
*
lpIDispatchExVtbl
;
IDispatchEx
IDispatchEx_iface
;
IUnknown
*
outer
;
...
...
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