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
91ba1a25
Commit
91ba1a25
authored
Jul 19, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth: The DMSynth{,Sink} COM objects don't support aggregation.
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a7e52707
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
8 deletions
+11
-8
dmsynth_main.c
dlls/dmsynth/dmsynth_main.c
+5
-2
dmsynth_private.h
dlls/dmsynth/dmsynth_private.h
+2
-2
synth.c
dlls/dmsynth/synth.c
+2
-2
synthsink.c
dlls/dmsynth/synthsink.c
+2
-2
No files found.
dlls/dmsynth/dmsynth_main.c
View file @
91ba1a25
...
...
@@ -32,7 +32,7 @@ LONG DMSYNTH_refCount = 0;
typedef
struct
{
IClassFactory
IClassFactory_iface
;
HRESULT
WINAPI
(
*
fnCreateInstance
)(
REFIID
riid
,
void
**
ppv
,
IUnknown
*
pUnkOuter
);
HRESULT
WINAPI
(
*
fnCreateInstance
)(
REFIID
riid
,
void
**
ppv
);
}
IClassFactoryImpl
;
/******************************************************************
...
...
@@ -84,7 +84,10 @@ static HRESULT WINAPI ClassFactory_CreateInstance(IClassFactory *iface, IUnknown
TRACE
(
"(%p, %s, %p)
\n
"
,
pUnkOuter
,
debugstr_dmguid
(
riid
),
ppv
);
return
This
->
fnCreateInstance
(
riid
,
ppv
,
pUnkOuter
);
if
(
pUnkOuter
)
return
CLASS_E_NOAGGREGATION
;
return
This
->
fnCreateInstance
(
riid
,
ppv
);
}
static
HRESULT
WINAPI
ClassFactory_LockServer
(
IClassFactory
*
iface
,
BOOL
dolock
)
...
...
dlls/dmsynth/dmsynth_private.h
View file @
91ba1a25
...
...
@@ -50,8 +50,8 @@ typedef struct IDirectMusicSynthSinkImpl IDirectMusicSynthSinkImpl;
/*****************************************************************************
* ClassFactory
*/
extern
HRESULT
WINAPI
DMUSIC_CreateDirectMusicSynthImpl
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
DMUSIC_CreateDirectMusicSynthSinkImpl
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
DMUSIC_CreateDirectMusicSynthImpl
(
REFIID
riid
,
void
**
ppobj
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
DMUSIC_CreateDirectMusicSynthSinkImpl
(
REFIID
riid
,
void
**
ppobj
)
DECLSPEC_HIDDEN
;
/*****************************************************************************
* IDirectMusicSynth8Impl implementation structure
...
...
dlls/dmsynth/synth.c
View file @
91ba1a25
...
...
@@ -575,14 +575,14 @@ static const IKsControlVtbl DMSynthImpl_IKsControl_Vtbl = {
};
/* for ClassFactory */
HRESULT
WINAPI
DMUSIC_CreateDirectMusicSynthImpl
(
REFIID
riid
,
void
**
ppobj
,
IUnknown
*
outer
)
HRESULT
WINAPI
DMUSIC_CreateDirectMusicSynthImpl
(
REFIID
riid
,
void
**
ppobj
)
{
static
const
WCHAR
descrW
[]
=
{
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
' '
,
'S'
,
'y'
,
'n'
,
't'
,
'h'
,
'e'
,
's'
,
'i'
,
'z'
,
'e'
,
'r'
,
0
};
IDirectMusicSynth8Impl
*
obj
;
HRESULT
hr
;
TRACE
(
"(%s, %p
, %p)
\n
"
,
debugstr_guid
(
riid
),
ppobj
,
outer
);
TRACE
(
"(%s, %p
)
\n
"
,
debugstr_guid
(
riid
),
ppobj
);
obj
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
obj
));
if
(
NULL
==
obj
)
{
...
...
dlls/dmsynth/synthsink.c
View file @
91ba1a25
...
...
@@ -267,12 +267,12 @@ static const IKsControlVtbl DMSynthSinkImpl_IKsControl_Vtbl = {
};
/* for ClassFactory */
HRESULT
WINAPI
DMUSIC_CreateDirectMusicSynthSinkImpl
(
LPCGUID
riid
,
LPVOID
*
ret_iface
,
LPUNKNOWN
unkouter
)
HRESULT
WINAPI
DMUSIC_CreateDirectMusicSynthSinkImpl
(
REFIID
riid
,
void
**
ret_iface
)
{
IDirectMusicSynthSinkImpl
*
obj
;
HRESULT
hr
;
TRACE
(
"(%
p,%p,%p)
\n
"
,
riid
,
ret_iface
,
unkouter
);
TRACE
(
"(%
s, %p)
\n
"
,
debugstr_guid
(
riid
),
ret_iface
);
*
ret_iface
=
NULL
;
...
...
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