Commit eb03e833 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

dmusic: Add trace to DMUSIC_CreateReferenceClockImpl and rename some variables.

parent c05c0495
...@@ -99,18 +99,22 @@ static const IReferenceClockVtbl ReferenceClock_Vtbl = { ...@@ -99,18 +99,22 @@ static const IReferenceClockVtbl ReferenceClock_Vtbl = {
}; };
/* for ClassFactory */ /* for ClassFactory */
HRESULT WINAPI DMUSIC_CreateReferenceClockImpl (LPCGUID lpcGUID, LPVOID* ppobj, LPUNKNOWN pUnkOuter) { HRESULT WINAPI DMUSIC_CreateReferenceClockImpl(LPCGUID riid, LPVOID* ret_iface, LPUNKNOWN unkouter)
IReferenceClockImpl* clock; {
IReferenceClockImpl* clock;
clock = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IReferenceClockImpl)); TRACE("(%p,%p,%p)\n", riid, ret_iface, unkouter);
if (NULL == clock) {
*ppobj = NULL; clock = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IReferenceClockImpl));
return E_OUTOFMEMORY; if (!clock) {
} *ret_iface = NULL;
clock->lpVtbl = &ReferenceClock_Vtbl; return E_OUTOFMEMORY;
clock->ref = 0; /* will be inited by QueryInterface */ }
clock->rtTime = 0;
clock->pClockInfo.dwSize = sizeof (DMUS_CLOCKINFO); clock->lpVtbl = &ReferenceClock_Vtbl;
clock->ref = 0; /* will be inited by QueryInterface */
return IReferenceClockImpl_QueryInterface ((IReferenceClock *)clock, lpcGUID, ppobj); clock->rtTime = 0;
clock->pClockInfo.dwSize = sizeof (DMUS_CLOCKINFO);
return IReferenceClockImpl_QueryInterface((IReferenceClock*)clock, riid, ret_iface);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment