Christian Costa : dmusic: Add trace to DMUSIC_CreateReferenceClockImpl and rename some variables.

Alexandre Julliard julliard at winehq.org
Wed Apr 11 12:56:47 CDT 2012


Module: wine
Branch: master
Commit: eb03e83348122a9100403a850a7665b42100f249
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=eb03e83348122a9100403a850a7665b42100f249

Author: Christian Costa <titan.costa at gmail.com>
Date:   Tue Apr 10 22:30:45 2012 +0200

dmusic: Add trace to DMUSIC_CreateReferenceClockImpl and rename some variables.

---

 dlls/dmusic/clock.c |   30 +++++++++++++++++-------------
 1 files changed, 17 insertions(+), 13 deletions(-)

diff --git a/dlls/dmusic/clock.c b/dlls/dmusic/clock.c
index 53f7715..4505876 100644
--- a/dlls/dmusic/clock.c
+++ b/dlls/dmusic/clock.c
@@ -99,18 +99,22 @@ static const IReferenceClockVtbl ReferenceClock_Vtbl = {
 };
 
 /* for ClassFactory */
-HRESULT WINAPI DMUSIC_CreateReferenceClockImpl (LPCGUID lpcGUID, LPVOID* ppobj, LPUNKNOWN pUnkOuter) {
-	IReferenceClockImpl* clock;
+HRESULT WINAPI DMUSIC_CreateReferenceClockImpl(LPCGUID riid, LPVOID* ret_iface, LPUNKNOWN unkouter)
+{
+    IReferenceClockImpl* clock;
 
-	clock = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IReferenceClockImpl));
-	if (NULL == clock) {
-		*ppobj = NULL;
-		return E_OUTOFMEMORY;
-	}
-	clock->lpVtbl = &ReferenceClock_Vtbl;
-	clock->ref = 0; /* will be inited by QueryInterface */
-	clock->rtTime = 0;
-	clock->pClockInfo.dwSize = sizeof (DMUS_CLOCKINFO);
-		
-	return IReferenceClockImpl_QueryInterface ((IReferenceClock *)clock, lpcGUID, ppobj);
+    TRACE("(%p,%p,%p)\n", riid, ret_iface, unkouter);
+
+    clock = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IReferenceClockImpl));
+    if (!clock) {
+        *ret_iface = NULL;
+        return E_OUTOFMEMORY;
+    }
+
+    clock->lpVtbl = &ReferenceClock_Vtbl;
+    clock->ref = 0; /* will be inited by QueryInterface */
+    clock->rtTime = 0;
+    clock->pClockInfo.dwSize = sizeof (DMUS_CLOCKINFO);
+
+    return IReferenceClockImpl_QueryInterface((IReferenceClock*)clock, riid, ret_iface);
 }




More information about the wine-cvs mailing list