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
08e571cf
Commit
08e571cf
authored
Jul 06, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Avoid casts from the IMultiQI iface to the COM object.
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a1f0d09a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
marshal.c
dlls/ole32/marshal.c
+10
-5
No files found.
dlls/ole32/marshal.c
View file @
08e571cf
...
...
@@ -73,6 +73,11 @@ struct proxy_manager
void
*
dest_context_data
;
/* reserved context value (LOCK) */
};
static
inline
struct
proxy_manager
*
impl_from_IMultiQI
(
IMultiQI
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
proxy_manager
,
IMultiQI_iface
);
}
static
inline
struct
proxy_manager
*
impl_from_IMarshal
(
IMarshal
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
proxy_manager
,
IMarshal_iface
);
...
...
@@ -231,16 +236,16 @@ static HRESULT WINAPI ClientIdentity_QueryInterface(IMultiQI * iface, REFIID rii
return
hr
;
}
static
ULONG
WINAPI
ClientIdentity_AddRef
(
IMultiQI
*
iface
)
static
ULONG
WINAPI
ClientIdentity_AddRef
(
IMultiQI
*
iface
)
{
struct
proxy_manager
*
This
=
(
struct
proxy_manager
*
)
iface
;
struct
proxy_manager
*
This
=
impl_from_IMultiQI
(
iface
)
;
TRACE
(
"%p - before %d
\n
"
,
iface
,
This
->
refs
);
return
InterlockedIncrement
(
&
This
->
refs
);
}
static
ULONG
WINAPI
ClientIdentity_Release
(
IMultiQI
*
iface
)
static
ULONG
WINAPI
ClientIdentity_Release
(
IMultiQI
*
iface
)
{
struct
proxy_manager
*
This
=
(
struct
proxy_manager
*
)
iface
;
struct
proxy_manager
*
This
=
impl_from_IMultiQI
(
iface
)
;
ULONG
refs
=
InterlockedDecrement
(
&
This
->
refs
);
TRACE
(
"%p - after %d
\n
"
,
iface
,
refs
);
if
(
!
refs
)
...
...
@@ -250,7 +255,7 @@ static ULONG WINAPI ClientIdentity_Release(IMultiQI * iface)
static
HRESULT
WINAPI
ClientIdentity_QueryMultipleInterfaces
(
IMultiQI
*
iface
,
ULONG
cMQIs
,
MULTI_QI
*
pMQIs
)
{
struct
proxy_manager
*
This
=
(
struct
proxy_manager
*
)
iface
;
struct
proxy_manager
*
This
=
impl_from_IMultiQI
(
iface
)
;
REMQIRESULT
*
qiresults
=
NULL
;
ULONG
nonlocal_mqis
=
0
;
ULONG
i
;
...
...
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