dmime: DirectMusicPerformance doesn't supports COM aggregation.

This commit is contained in:
Michael Stefaniuc 2012-04-02 00:05:47 +02:00 committed by Alexandre Julliard
parent 5bd335668d
commit 0ea219429f
1 changed files with 6 additions and 1 deletions

View File

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