dmusic: These COM classes don't support COM aggregation.
This commit is contained in:
parent
36e8004291
commit
5f5c21e55d
|
@ -814,12 +814,15 @@ static const IPersistStreamVtbl DirectMusicCollection_PersistStream_Vtbl = {
|
||||||
HRESULT WINAPI DMUSIC_CreateDirectMusicCollectionImpl(LPCGUID lpcGUID, LPVOID* ppobj, LPUNKNOWN pUnkOuter)
|
HRESULT WINAPI DMUSIC_CreateDirectMusicCollectionImpl(LPCGUID lpcGUID, LPVOID* ppobj, LPUNKNOWN pUnkOuter)
|
||||||
{
|
{
|
||||||
IDirectMusicCollectionImpl* obj;
|
IDirectMusicCollectionImpl* obj;
|
||||||
|
|
||||||
|
*ppobj = NULL;
|
||||||
|
if (pUnkOuter)
|
||||||
|
return CLASS_E_NOAGGREGATION;
|
||||||
|
|
||||||
obj = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectMusicCollectionImpl));
|
obj = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectMusicCollectionImpl));
|
||||||
if (NULL == obj) {
|
if (!obj)
|
||||||
*ppobj = NULL;
|
return E_OUTOFMEMORY;
|
||||||
return E_OUTOFMEMORY;
|
|
||||||
}
|
|
||||||
obj->IDirectMusicCollection_iface.lpVtbl = &DirectMusicCollection_Collection_Vtbl;
|
obj->IDirectMusicCollection_iface.lpVtbl = &DirectMusicCollection_Collection_Vtbl;
|
||||||
obj->IDirectMusicObject_iface.lpVtbl = &DirectMusicCollection_Object_Vtbl;
|
obj->IDirectMusicObject_iface.lpVtbl = &DirectMusicCollection_Object_Vtbl;
|
||||||
obj->IPersistStream_iface.lpVtbl = &DirectMusicCollection_PersistStream_Vtbl;
|
obj->IPersistStream_iface.lpVtbl = &DirectMusicCollection_PersistStream_Vtbl;
|
||||||
|
|
|
@ -408,6 +408,8 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicImpl(LPCGUID riid, LPVOID* ret_iface, LPU
|
||||||
TRACE("(%p,%p,%p)\n", riid, ret_iface, unkouter);
|
TRACE("(%p,%p,%p)\n", riid, ret_iface, unkouter);
|
||||||
|
|
||||||
*ret_iface = NULL;
|
*ret_iface = NULL;
|
||||||
|
if (unkouter)
|
||||||
|
return CLASS_E_NOAGGREGATION;
|
||||||
|
|
||||||
dmusic = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectMusic8Impl));
|
dmusic = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectMusic8Impl));
|
||||||
if (!dmusic)
|
if (!dmusic)
|
||||||
|
|
Loading…
Reference in New Issue