Commit 58f34f50 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

dmusic: Check returned value of GetPortCaps.

parent b3e7f710
......@@ -395,10 +395,8 @@ static void create_system_ports_list(IDirectMusic8Impl* object)
hr = IDirectMusicSynth8_GetPortCaps(synth, &port->caps);
IDirectMusicSynth8_Release(synth);
}
else
{
if (FAILED(hr))
nb_ports--;
}
object->nb_system_ports = nb_ports;
}
......
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