Commit 3e48fe9d authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

dmsynth: Check the rigth CLSID to create the DirectMusicSynthSink object.

parent d2d5d0e0
......@@ -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;
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment