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
a60b1897
Commit
a60b1897
authored
Jul 05, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Standardize COM aggregation for the FreeThreadedMarshaler.
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9525b1e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
ftmarshal.c
dlls/ole32/ftmarshal.c
+11
-12
No files found.
dlls/ole32/ftmarshal.c
View file @
a60b1897
...
@@ -39,16 +39,15 @@
...
@@ -39,16 +39,15 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
ole
);
WINE_DEFAULT_DEBUG_CHANNEL
(
ole
);
typedef
struct
_FTMarshalImpl
{
typedef
struct
_FTMarshalImpl
{
IUnknown
IUnknown_iface
;
IUnknown
IUnknown_inner
;
LONG
ref
;
IMarshal
IMarshal_iface
;
IMarshal
IMarshal_iface
;
IUnknown
*
outer_unk
;
IUnknown
*
pUnkOuter
;
LONG
ref
;
}
FTMarshalImpl
;
}
FTMarshalImpl
;
static
inline
FTMarshalImpl
*
impl_from_IUnknown
(
IUnknown
*
iface
)
static
inline
FTMarshalImpl
*
impl_from_IUnknown
(
IUnknown
*
iface
)
{
{
return
CONTAINING_RECORD
(
iface
,
FTMarshalImpl
,
IUnknown_i
face
);
return
CONTAINING_RECORD
(
iface
,
FTMarshalImpl
,
IUnknown_i
nner
);
}
}
static
inline
FTMarshalImpl
*
impl_from_IMarshal
(
IMarshal
*
iface
)
static
inline
FTMarshalImpl
*
impl_from_IMarshal
(
IMarshal
*
iface
)
...
@@ -67,7 +66,7 @@ IiFTMUnknown_fnQueryInterface (IUnknown * iface, REFIID riid, LPVOID * ppv)
...
@@ -67,7 +66,7 @@ IiFTMUnknown_fnQueryInterface (IUnknown * iface, REFIID riid, LPVOID * ppv)
*
ppv
=
NULL
;
*
ppv
=
NULL
;
if
(
IsEqualIID
(
&
IID_IUnknown
,
riid
))
if
(
IsEqualIID
(
&
IID_IUnknown
,
riid
))
*
ppv
=
&
This
->
IUnknown_i
face
;
*
ppv
=
&
This
->
IUnknown_i
nner
;
else
if
(
IsEqualIID
(
&
IID_IMarshal
,
riid
))
else
if
(
IsEqualIID
(
&
IID_IMarshal
,
riid
))
*
ppv
=
&
This
->
IMarshal_iface
;
*
ppv
=
&
This
->
IMarshal_iface
;
else
{
else
{
...
@@ -113,7 +112,7 @@ FTMarshalImpl_QueryInterface (LPMARSHAL iface, REFIID riid, LPVOID * ppv)
...
@@ -113,7 +112,7 @@ FTMarshalImpl_QueryInterface (LPMARSHAL iface, REFIID riid, LPVOID * ppv)
FTMarshalImpl
*
This
=
impl_from_IMarshal
(
iface
);
FTMarshalImpl
*
This
=
impl_from_IMarshal
(
iface
);
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppv
);
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppv
);
return
IUnknown_QueryInterface
(
This
->
pUnkOuter
,
riid
,
ppv
);
return
IUnknown_QueryInterface
(
This
->
outer_unk
,
riid
,
ppv
);
}
}
static
ULONG
WINAPI
static
ULONG
WINAPI
...
@@ -123,7 +122,7 @@ FTMarshalImpl_AddRef (LPMARSHAL iface)
...
@@ -123,7 +122,7 @@ FTMarshalImpl_AddRef (LPMARSHAL iface)
FTMarshalImpl
*
This
=
impl_from_IMarshal
(
iface
);
FTMarshalImpl
*
This
=
impl_from_IMarshal
(
iface
);
TRACE
(
"
\n
"
);
TRACE
(
"
\n
"
);
return
IUnknown_AddRef
(
This
->
pUnkOuter
);
return
IUnknown_AddRef
(
This
->
outer_unk
);
}
}
static
ULONG
WINAPI
static
ULONG
WINAPI
...
@@ -133,7 +132,7 @@ FTMarshalImpl_Release (LPMARSHAL iface)
...
@@ -133,7 +132,7 @@ FTMarshalImpl_Release (LPMARSHAL iface)
FTMarshalImpl
*
This
=
impl_from_IMarshal
(
iface
);
FTMarshalImpl
*
This
=
impl_from_IMarshal
(
iface
);
TRACE
(
"
\n
"
);
TRACE
(
"
\n
"
);
return
IUnknown_Release
(
This
->
pUnkOuter
);
return
IUnknown_Release
(
This
->
outer_unk
);
}
}
static
HRESULT
WINAPI
static
HRESULT
WINAPI
...
@@ -342,12 +341,12 @@ HRESULT WINAPI CoCreateFreeThreadedMarshaler (LPUNKNOWN punkOuter, LPUNKNOWN * p
...
@@ -342,12 +341,12 @@ HRESULT WINAPI CoCreateFreeThreadedMarshaler (LPUNKNOWN punkOuter, LPUNKNOWN * p
if
(
!
ftm
)
if
(
!
ftm
)
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
ftm
->
IUnknown_i
face
.
lpVtbl
=
&
iunkvt
;
ftm
->
IUnknown_i
nner
.
lpVtbl
=
&
iunkvt
;
ftm
->
IMarshal_iface
.
lpVtbl
=
&
ftmvtbl
;
ftm
->
IMarshal_iface
.
lpVtbl
=
&
ftmvtbl
;
ftm
->
ref
=
1
;
ftm
->
ref
=
1
;
ftm
->
pUnkOuter
=
punkOuter
?
punkOuter
:
&
ftm
->
IUnknown_iface
;
ftm
->
outer_unk
=
punkOuter
?
punkOuter
:
&
ftm
->
IUnknown_inner
;
*
ppunkMarshal
=
&
ftm
->
IUnknown_i
face
;
*
ppunkMarshal
=
&
ftm
->
IUnknown_i
nner
;
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