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
3942f4d6
Commit
3942f4d6
authored
Dec 08, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
browseui: Use an iface instead of a vtbl pointer in CompCatCacheDaemon.
parent
40213ae2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
compcatcachedaemon.c
dlls/browseui/compcatcachedaemon.c
+10
-5
No files found.
dlls/browseui/compcatcachedaemon.c
View file @
3942f4d6
...
...
@@ -44,11 +44,16 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
browseui
);
typedef
struct
tagCCCD
{
const
IRunnableTaskVtbl
*
vtbl
;
IRunnableTask
IRunnableTask_iface
;
LONG
refCount
;
CRITICAL_SECTION
cs
;
}
CompCatCacheDaemon
;
static
inline
CompCatCacheDaemon
*
impl_from_IRunnableTask
(
IRunnableTask
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
CompCatCacheDaemon
,
IRunnableTask_iface
);
}
static
void
CompCatCacheDaemon_Destructor
(
CompCatCacheDaemon
*
This
)
{
TRACE
(
"destroying %p
\n
"
,
This
);
...
...
@@ -59,7 +64,7 @@ static void CompCatCacheDaemon_Destructor(CompCatCacheDaemon *This)
static
HRESULT
WINAPI
CompCatCacheDaemon_QueryInterface
(
IRunnableTask
*
iface
,
REFIID
iid
,
LPVOID
*
ppvOut
)
{
CompCatCacheDaemon
*
This
=
(
CompCatCacheDaemon
*
)
iface
;
CompCatCacheDaemon
*
This
=
impl_from_IRunnableTask
(
iface
)
;
*
ppvOut
=
NULL
;
if
(
IsEqualIID
(
iid
,
&
IID_IRunnableTask
)
||
IsEqualIID
(
iid
,
&
IID_IUnknown
))
...
...
@@ -79,13 +84,13 @@ static HRESULT WINAPI CompCatCacheDaemon_QueryInterface(IRunnableTask *iface, RE
static
ULONG
WINAPI
CompCatCacheDaemon_AddRef
(
IRunnableTask
*
iface
)
{
CompCatCacheDaemon
*
This
=
(
CompCatCacheDaemon
*
)
iface
;
CompCatCacheDaemon
*
This
=
impl_from_IRunnableTask
(
iface
)
;
return
InterlockedIncrement
(
&
This
->
refCount
);
}
static
ULONG
WINAPI
CompCatCacheDaemon_Release
(
IRunnableTask
*
iface
)
{
CompCatCacheDaemon
*
This
=
(
CompCatCacheDaemon
*
)
iface
;
CompCatCacheDaemon
*
This
=
impl_from_IRunnableTask
(
iface
)
;
ULONG
ret
;
ret
=
InterlockedDecrement
(
&
This
->
refCount
);
...
...
@@ -146,7 +151,7 @@ HRESULT CompCatCacheDaemon_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
if
(
This
==
NULL
)
return
E_OUTOFMEMORY
;
This
->
v
tbl
=
&
CompCatCacheDaemonVtbl
;
This
->
IRunnableTask_iface
.
lpV
tbl
=
&
CompCatCacheDaemonVtbl
;
This
->
refCount
=
1
;
InitializeCriticalSection
(
&
This
->
cs
);
...
...
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