[PATCH 2/4] dmime: DirectMusicPerformance doesn't supports COM aggregation.

Michael Stefaniuc mstefani at redhat.de
Sun Apr 1 17:05:47 CDT 2012


---
 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;
 	}
-- 
1.7.6.5



More information about the wine-patches mailing list