Michael Stefaniuc : dmime: DirectMusicPerformance doesn' t supports COM aggregation.

Alexandre Julliard julliard at winehq.org
Mon Apr 2 13:14:50 CDT 2012


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Mon Apr  2 00:05:47 2012 +0200

dmime: DirectMusicPerformance doesn't supports COM aggregation.

---

 dlls/dmime/performance.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/dlls/dmime/performance.c b/dlls/dmime/performance.c
index 0b4bf4c..dac4a42 100644
--- a/dlls/dmime/performance.c
+++ b/dlls/dmime/performance.c
@@ -1178,8 +1178,13 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicPerformanceImpl (LPCGUID lpcGUID, LPVOID
 
 	TRACE("(%p,%p,%p)\n", lpcGUID, ppobj, pUnkOuter);
 
+        if (pUnkOuter) {
+                *ppobj = NULL;
+                return CLASS_E_NOAGGREGATION;
+        }
+
 	obj = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectMusicPerformance8Impl));
-	if (NULL == obj) 	{
+        if (NULL == obj) {
 		*ppobj = NULL;
 		return E_OUTOFMEMORY;
 	}




More information about the wine-cvs mailing list