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
6682d86e
Commit
6682d86e
authored
Nov 11, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Get rid of the ICOM_THIS_MULTI macro.
parent
469c5535
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
tmarshal.c
dlls/oleaut32/tmarshal.c
+9
-6
No files found.
dlls/oleaut32/tmarshal.c
View file @
6682d86e
...
...
@@ -54,8 +54,6 @@ static const WCHAR IDispatchW[] = { 'I','D','i','s','p','a','t','c','h',0};
WINE_DEFAULT_DEBUG_CHANNEL
(
ole
);
WINE_DECLARE_DEBUG_CHANNEL
(
olerelay
);
#define ICOM_THIS_MULTI(impl,field,iface) impl* const This=(impl*)((char*)(iface) - offsetof(impl,field))
static
HRESULT
TMarshalDispatchChannel_Create
(
IRpcChannelBuffer
*
pDelegateChannel
,
REFIID
tmarshal_riid
,
IRpcChannelBuffer
**
ppChannel
);
...
...
@@ -405,6 +403,11 @@ typedef struct _TMProxyImpl {
IRpcProxyBuffer
*
dispatch_proxy
;
}
TMProxyImpl
;
static
inline
TMProxyImpl
*
impl_from_IRpcProxyBuffer
(
IRpcProxyBuffer
*
iface
)
{
return
(
TMProxyImpl
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
TMProxyImpl
,
lpvtbl2
));
}
static
HRESULT
WINAPI
TMProxyImpl_QueryInterface
(
LPRPCPROXYBUFFER
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
{
...
...
@@ -421,7 +424,7 @@ TMProxyImpl_QueryInterface(LPRPCPROXYBUFFER iface, REFIID riid, LPVOID *ppv)
static
ULONG
WINAPI
TMProxyImpl_AddRef
(
LPRPCPROXYBUFFER
iface
)
{
ICOM_THIS_MULTI
(
TMProxyImpl
,
lpvtbl2
,
iface
);
TMProxyImpl
*
This
=
impl_from_IRpcProxyBuffer
(
iface
);
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
-
1
);
...
...
@@ -432,7 +435,7 @@ TMProxyImpl_AddRef(LPRPCPROXYBUFFER iface)
static
ULONG
WINAPI
TMProxyImpl_Release
(
LPRPCPROXYBUFFER
iface
)
{
ICOM_THIS_MULTI
(
TMProxyImpl
,
lpvtbl2
,
iface
);
TMProxyImpl
*
This
=
impl_from_IRpcProxyBuffer
(
iface
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
+
1
);
...
...
@@ -455,7 +458,7 @@ static HRESULT WINAPI
TMProxyImpl_Connect
(
LPRPCPROXYBUFFER
iface
,
IRpcChannelBuffer
*
pRpcChannelBuffer
)
{
ICOM_THIS_MULTI
(
TMProxyImpl
,
lpvtbl2
,
iface
);
TMProxyImpl
*
This
=
impl_from_IRpcProxyBuffer
(
iface
);
TRACE
(
"(%p)
\n
"
,
pRpcChannelBuffer
);
...
...
@@ -483,7 +486,7 @@ TMProxyImpl_Connect(
static
void
WINAPI
TMProxyImpl_Disconnect
(
LPRPCPROXYBUFFER
iface
)
{
ICOM_THIS_MULTI
(
TMProxyImpl
,
lpvtbl2
,
iface
);
TMProxyImpl
*
This
=
impl_from_IRpcProxyBuffer
(
iface
);
TRACE
(
"()
\n
"
);
...
...
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