Christian Costa : dmusic: Check errors in IDirectMusic8Impl_Activate and remove FIXME.

Alexandre Julliard julliard at winehq.org
Wed May 2 14:30:03 CDT 2012


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

Author: Christian Costa <titan.costa at gmail.com>
Date:   Tue May  1 10:07:23 2012 +0200

dmusic: Check errors in IDirectMusic8Impl_Activate and remove FIXME.

---

 dlls/dmusic/dmusic.c |   25 +++++++++++++++----------
 1 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/dlls/dmusic/dmusic.c b/dlls/dmusic/dmusic.c
index 28c8d35..1a00236 100644
--- a/dlls/dmusic/dmusic.c
+++ b/dlls/dmusic/dmusic.c
@@ -285,17 +285,22 @@ static HRESULT WINAPI IDirectMusic8Impl_SetMasterClock(LPDIRECTMUSIC8 iface, REF
     return S_OK;
 }
 
-static HRESULT WINAPI IDirectMusic8Impl_Activate(LPDIRECTMUSIC8 iface, BOOL fEnable)
+static HRESULT WINAPI IDirectMusic8Impl_Activate(LPDIRECTMUSIC8 iface, BOOL enable)
 {
-	IDirectMusic8Impl *This = impl_from_IDirectMusic8(iface);
-	int i;
-	
-	FIXME("(%p, %d): stub\n", This, fEnable);
-	for (i = 0; i < This->nrofports; i++) {
-            IDirectMusicPort_Activate(This->ppPorts[i], fEnable);
-	}
-	
-	return S_OK;
+    IDirectMusic8Impl *This = impl_from_IDirectMusic8(iface);
+    int i;
+    HRESULT hr;
+
+    TRACE("(%p)->(%u)\n", This, enable);
+
+    for (i = 0; i < This->nrofports; i++)
+    {
+        hr = IDirectMusicPort_Activate(This->ppPorts[i], enable);
+        if (FAILED(hr))
+            return hr;
+    }
+
+    return S_OK;
 }
 
 static HRESULT WINAPI IDirectMusic8Impl_GetDefaultPort(LPDIRECTMUSIC8 iface, LPGUID pguidPort)




More information about the wine-cvs mailing list