Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5f5c21e5
Commit
5f5c21e5
authored
Dec 28, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: These COM classes don't support COM aggregation.
parent
36e80042
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
collection.c
dlls/dmusic/collection.c
+8
-5
dmusic.c
dlls/dmusic/dmusic.c
+2
-0
No files found.
dlls/dmusic/collection.c
View file @
5f5c21e5
...
...
@@ -814,12 +814,15 @@ static const IPersistStreamVtbl DirectMusicCollection_PersistStream_Vtbl = {
HRESULT
WINAPI
DMUSIC_CreateDirectMusicCollectionImpl
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
{
IDirectMusicCollectionImpl
*
obj
;
*
ppobj
=
NULL
;
if
(
pUnkOuter
)
return
CLASS_E_NOAGGREGATION
;
obj
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectMusicCollectionImpl
));
if
(
NULL
==
obj
)
{
*
ppobj
=
NULL
;
return
E_OUTOFMEMORY
;
}
if
(
!
obj
)
return
E_OUTOFMEMORY
;
obj
->
IDirectMusicCollection_iface
.
lpVtbl
=
&
DirectMusicCollection_Collection_Vtbl
;
obj
->
IDirectMusicObject_iface
.
lpVtbl
=
&
DirectMusicCollection_Object_Vtbl
;
obj
->
IPersistStream_iface
.
lpVtbl
=
&
DirectMusicCollection_PersistStream_Vtbl
;
...
...
dlls/dmusic/dmusic.c
View file @
5f5c21e5
...
...
@@ -408,6 +408,8 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicImpl(LPCGUID riid, LPVOID* ret_iface, LPU
TRACE
(
"(%p,%p,%p)
\n
"
,
riid
,
ret_iface
,
unkouter
);
*
ret_iface
=
NULL
;
if
(
unkouter
)
return
CLASS_E_NOAGGREGATION
;
dmusic
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectMusic8Impl
));
if
(
!
dmusic
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment