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
87f42eb8
Commit
87f42eb8
authored
Nov 29, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dispex/tests: Use an iface instead of a vtbl pointer in dispex.
parent
278b7a04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
marshal.c
dlls/dispex/tests/marshal.c
+9
-4
No files found.
dlls/dispex/tests/marshal.c
View file @
87f42eb8
...
...
@@ -140,10 +140,15 @@ static void end_host_object(DWORD tid, HANDLE thread)
typedef
struct
{
const
IDispatchExVtbl
*
lpVtbl
;
IDispatchEx
IDispatchEx_iface
;
LONG
refs
;
}
dispex
;
static
inline
dispex
*
impl_from_IDispatchEx
(
IDispatchEx
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
dispex
,
IDispatchEx_iface
);
}
static
HRESULT
WINAPI
dispex_QueryInterface
(
IDispatchEx
*
iface
,
REFIID
iid
,
void
**
obj
)
{
...
...
@@ -164,7 +169,7 @@ static HRESULT WINAPI dispex_QueryInterface(IDispatchEx* iface,
static
ULONG
WINAPI
dispex_AddRef
(
IDispatchEx
*
iface
)
{
dispex
*
This
=
(
dispex
*
)
iface
;
dispex
*
This
=
impl_from_IDispatchEx
(
iface
)
;
trace
(
"AddRef
\n
"
);
return
InterlockedIncrement
(
&
This
->
refs
);
...
...
@@ -172,7 +177,7 @@ static ULONG WINAPI dispex_AddRef(IDispatchEx* iface)
static
ULONG
WINAPI
dispex_Release
(
IDispatchEx
*
iface
)
{
dispex
*
This
=
(
dispex
*
)
iface
;
dispex
*
This
=
impl_from_IDispatchEx
(
iface
)
;
ULONG
refs
=
InterlockedDecrement
(
&
This
->
refs
);
trace
(
"Release
\n
"
);
if
(
!
refs
)
...
...
@@ -349,7 +354,7 @@ static IDispatchEx *dispex_create(void)
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
This
));
if
(
!
This
)
return
NULL
;
This
->
lpVtbl
=
&
dispex_vtable
;
This
->
IDispatchEx_iface
.
lpVtbl
=
&
dispex_vtable
;
This
->
refs
=
1
;
return
(
IDispatchEx
*
)
This
;
}
...
...
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