Commit 9c79ba8a authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

dmusic: Check correct return code.

parent 45c7b47b
......@@ -142,7 +142,7 @@ static HRESULT WINAPI IDirectMusic8Impl_EnumPort(LPDIRECTMUSIC8 iface, DWORD ind
HRESULT hr;
hr = CoCreateInstance(&CLSID_DirectMusicSynth, NULL, CLSCTX_INPROC_SERVER, &IID_IDirectMusicSynth8, (void**)&synth);
if (SUCCEEDED(hr))
IDirectMusicSynth8_GetPortCaps(synth, port_caps);
hr = IDirectMusicSynth8_GetPortCaps(synth, port_caps);
if (SUCCEEDED(hr))
TRACE("Enumerating port: %s\n", debugstr_w(port_caps->wszDescription));
if (synth)
......
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