dmusic: Check returned value of GetPortCaps.

This commit is contained in:
Christian Costa 2012-09-28 08:59:36 +02:00 committed by Alexandre Julliard
parent b3e7f71091
commit 58f34f509b
1 changed files with 1 additions and 3 deletions

View File

@ -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;
}