[PATCH 1/2] dmime: DirectMusicSegment doesn't supports COM aggregation.

Michael Stefaniuc mstefani at redhat.de
Thu Apr 5 17:15:24 CDT 2012


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

diff --git a/dlls/dmime/segment.c b/dlls/dmime/segment.c
index 6dd5e02..e0d082d 100644
--- a/dlls/dmime/segment.c
+++ b/dlls/dmime/segment.c
@@ -1291,7 +1291,12 @@ static const IPersistStreamVtbl DirectMusicSegment8_PersistStream_Vtbl = {
 /* for ClassFactory */
 HRESULT WINAPI DMUSIC_CreateDirectMusicSegmentImpl (LPCGUID lpcGUID, LPVOID* ppobj, LPUNKNOWN pUnkOuter) {
   IDirectMusicSegment8Impl* obj;
-  
+
+  if (pUnkOuter) {
+    *ppobj = NULL;
+    return CLASS_E_NOAGGREGATION;
+  }
+
   obj = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectMusicSegment8Impl));
   if (NULL == obj) {
     *ppobj = NULL;
-- 
1.7.6.5



More information about the wine-patches mailing list