Skip to content
Snippets Groups Projects
Commit 5e1783b5 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard
Browse files

dmusic: Increment the refcount when a IReferenceClock pointer is returned.

parent 270d66ef
No related branches found
No related tags found
No related merge requests found
......@@ -210,8 +210,10 @@ static HRESULT WINAPI IDirectMusic8Impl_GetMasterClock(LPDIRECTMUSIC8 iface, LPG
if (guid_clock)
*guid_clock = This->pMasterClock->pClockInfo.guidClock;
if (reference_clock)
*reference_clock = (IReferenceClock*)This->pMasterClock;
if (reference_clock) {
*reference_clock = &This->pMasterClock->IReferenceClock_iface;
IReferenceClock_AddRef(*reference_clock);
}
return S_OK;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment