Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3e48fe9d
Commit
3e48fe9d
authored
Apr 06, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Apr 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth: Check the rigth CLSID to create the DirectMusicSynthSink object.
parent
d2d5d0e0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
dmsynth_main.c
dlls/dmsynth/dmsynth_main.c
+3
-2
dmsynth.c
dlls/dmsynth/tests/dmsynth.c
+1
-1
No files found.
dlls/dmsynth/dmsynth_main.c
View file @
3e48fe9d
...
...
@@ -148,11 +148,12 @@ HRESULT WINAPI DllCanUnloadNow(void)
HRESULT
WINAPI
DllGetClassObject
(
REFCLSID
rclsid
,
REFIID
riid
,
LPVOID
*
ppv
)
{
TRACE
(
"(%s, %s, %p)
\n
"
,
debugstr_dmguid
(
rclsid
),
debugstr_dmguid
(
riid
),
ppv
);
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicSynth
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicSynth
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
*
ppv
=
&
Synth_CF
;
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
return
S_OK
;
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicSynth
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_DirectMusicSynthSink
)
&&
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
*
ppv
=
&
SynthSink_CF
;
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
return
S_OK
;
...
...
dlls/dmsynth/tests/dmsynth.c
View file @
3e48fe9d
...
...
@@ -43,7 +43,7 @@ static void test_dmsynth(void)
}
hr
=
CoCreateInstance
(
&
CLSID_DirectMusicSynthSink
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectMusicSynthSink
,
(
LPVOID
*
)
&
dmsynth_sink
);
todo_wine
ok
(
hr
==
S_OK
,
"CoCreateInstance returned: %x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"CoCreateInstance returned: %x
\n
"
,
hr
);
if
(
dmsynth_sink
)
IDirectMusicSynthSink_Release
(
dmsynth_sink
);
...
...
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