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
f27f7544
Commit
f27f7544
authored
Dec 08, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Use an iface instead of a vtbl pointer in RemUnknown.
parent
f4a0e349
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
stubmanager.c
dlls/ole32/stubmanager.c
+10
-5
No files found.
dlls/ole32/stubmanager.c
View file @
f27f7544
...
@@ -578,12 +578,17 @@ BOOL stub_manager_is_table_marshaled(struct stub_manager *m, const IPID *ipid)
...
@@ -578,12 +578,17 @@ BOOL stub_manager_is_table_marshaled(struct stub_manager *m, const IPID *ipid)
typedef
struct
rem_unknown
typedef
struct
rem_unknown
{
{
const
IRemUnknownVtbl
*
lpVtbl
;
IRemUnknown
IRemUnknown_iface
;
LONG
refs
;
LONG
refs
;
}
RemUnknown
;
}
RemUnknown
;
static
const
IRemUnknownVtbl
RemUnknown_Vtbl
;
static
const
IRemUnknownVtbl
RemUnknown_Vtbl
;
static
inline
RemUnknown
*
impl_from_IRemUnknown
(
IRemUnknown
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
RemUnknown
,
IRemUnknown_iface
);
}
/* construct an IRemUnknown object with one outstanding reference */
/* construct an IRemUnknown object with one outstanding reference */
static
HRESULT
RemUnknown_Construct
(
IRemUnknown
**
ppRemUnknown
)
static
HRESULT
RemUnknown_Construct
(
IRemUnknown
**
ppRemUnknown
)
...
@@ -592,10 +597,10 @@ static HRESULT RemUnknown_Construct(IRemUnknown **ppRemUnknown)
...
@@ -592,10 +597,10 @@ static HRESULT RemUnknown_Construct(IRemUnknown **ppRemUnknown)
if
(
!
This
)
return
E_OUTOFMEMORY
;
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
lpVtbl
=
&
RemUnknown_Vtbl
;
This
->
IRemUnknown_iface
.
lpVtbl
=
&
RemUnknown_Vtbl
;
This
->
refs
=
1
;
This
->
refs
=
1
;
*
ppRemUnknown
=
(
IRemUnknown
*
)
This
;
*
ppRemUnknown
=
&
This
->
IRemUnknown_iface
;
return
S_OK
;
return
S_OK
;
}
}
...
@@ -620,7 +625,7 @@ static HRESULT WINAPI RemUnknown_QueryInterface(IRemUnknown *iface, REFIID riid,
...
@@ -620,7 +625,7 @@ static HRESULT WINAPI RemUnknown_QueryInterface(IRemUnknown *iface, REFIID riid,
static
ULONG
WINAPI
RemUnknown_AddRef
(
IRemUnknown
*
iface
)
static
ULONG
WINAPI
RemUnknown_AddRef
(
IRemUnknown
*
iface
)
{
{
ULONG
refs
;
ULONG
refs
;
RemUnknown
*
This
=
(
RemUnknown
*
)
iface
;
RemUnknown
*
This
=
impl_from_IRemUnknown
(
iface
)
;
refs
=
InterlockedIncrement
(
&
This
->
refs
);
refs
=
InterlockedIncrement
(
&
This
->
refs
);
...
@@ -631,7 +636,7 @@ static ULONG WINAPI RemUnknown_AddRef(IRemUnknown *iface)
...
@@ -631,7 +636,7 @@ static ULONG WINAPI RemUnknown_AddRef(IRemUnknown *iface)
static
ULONG
WINAPI
RemUnknown_Release
(
IRemUnknown
*
iface
)
static
ULONG
WINAPI
RemUnknown_Release
(
IRemUnknown
*
iface
)
{
{
ULONG
refs
;
ULONG
refs
;
RemUnknown
*
This
=
(
RemUnknown
*
)
iface
;
RemUnknown
*
This
=
impl_from_IRemUnknown
(
iface
)
;
refs
=
InterlockedDecrement
(
&
This
->
refs
);
refs
=
InterlockedDecrement
(
&
This
->
refs
);
if
(
!
refs
)
if
(
!
refs
)
...
...
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