From f998b267d6dcf1a8c930256995c11ed50e330320 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Fri, 6 Apr 2012 00:15:24 +0200 Subject: [PATCH] dmime: DirectMusicSegment doesn't supports COM aggregation. --- dlls/dmime/segment.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dlls/dmime/segment.c b/dlls/dmime/segment.c index 6dd5e0212fe..e0d082d5c06 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; -- 2.11.4.GIT