dmusic: Init port caps dwSize member before calling GetPortCaps.

This commit is contained in:
Christian Costa 2012-11-05 09:46:13 +01:00 committed by Alexandre Julliard
parent f7a9df5ecb
commit f3e883878d
1 changed files with 1 additions and 0 deletions

View File

@ -389,6 +389,7 @@ static void create_system_ports_list(IDirectMusic8Impl* object)
hr = CoCreateInstance(&CLSID_DirectMusicSynth, NULL, CLSCTX_INPROC_SERVER, &IID_IDirectMusicSynth8, (void**)&synth);
if (SUCCEEDED(hr))
{
port->caps.dwSize = sizeof(port->caps);
hr = IDirectMusicSynth8_GetPortCaps(synth, &port->caps);
IDirectMusicSynth8_Release(synth);
}