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
6f323816
Commit
6f323816
authored
Mar 16, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Mar 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/systemclock: Clean up the remaining IUnknown methods.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1ecf2bf1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
17 deletions
+19
-17
systemclock.c
dlls/quartz/systemclock.c
+19
-17
No files found.
dlls/quartz/systemclock.c
View file @
6f323816
...
...
@@ -108,29 +108,31 @@ static void notify_thread(SystemClockImpl *clock)
SetEvent
(
clock
->
notify_event
);
}
static
ULONG
WINAPI
SystemClockImpl_AddRef
(
IReferenceClock
*
iface
)
{
SystemClockImpl
*
This
=
impl_from_IReferenceClock
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
static
HRESULT
WINAPI
SystemClockImpl_QueryInterface
(
IReferenceClock
*
iface
,
REFIID
iid
,
void
**
out
)
{
SystemClockImpl
*
clock
=
impl_from_IReferenceClock
(
iface
);
TRACE
(
"clock %p, iid %s, out %p.
\n
"
,
clock
,
debugstr_guid
(
iid
),
out
);
TRACE
(
"(%p): AddRef from %d
\n
"
,
This
,
ref
-
1
);
if
(
IsEqualGUID
(
iid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
iid
,
&
IID_IReferenceClock
))
{
IReferenceClock_AddRef
(
iface
);
*
out
=
iface
;
return
S_OK
;
}
return
ref
;
WARN
(
"%s not implemented, returning E_NOINTERFACE.
\n
"
,
debugstr_guid
(
iid
));
*
out
=
NULL
;
return
E_NOINTERFACE
;
}
static
HRESULT
WINAPI
SystemClockImpl_QueryInterface
(
IReferenceClock
*
iface
,
REFIID
riid
,
void
**
ppobj
)
{
SystemClockImpl
*
This
=
impl_from_IReferenceClock
(
iface
);
TRACE
(
"(%p, %s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
static
ULONG
WINAPI
SystemClockImpl_AddRef
(
IReferenceClock
*
iface
)
{
SystemClockImpl
*
clock
=
impl_from_IReferenceClock
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
clock
->
ref
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IReferenceClock
))
{
SystemClockImpl_AddRef
(
iface
);
*
ppobj
=
&
This
->
IReferenceClock_iface
;
return
S_OK
;
}
TRACE
(
"%p increasing refcount to %u.
\n
"
,
clock
,
refcount
);
*
ppobj
=
NULL
;
WARN
(
"(%p, %s,%p): not found
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
return
E_NOINTERFACE
;
return
refcount
;
}
static
ULONG
WINAPI
SystemClockImpl_Release
(
IReferenceClock
*
iface
)
...
...
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