dmusic: Init port caps dwSize member before calling GetPortCaps.
This commit is contained in:
parent
f7a9df5ecb
commit
f3e883878d
|
@ -389,6 +389,7 @@ static void create_system_ports_list(IDirectMusic8Impl* object)
|
||||||
hr = CoCreateInstance(&CLSID_DirectMusicSynth, NULL, CLSCTX_INPROC_SERVER, &IID_IDirectMusicSynth8, (void**)&synth);
|
hr = CoCreateInstance(&CLSID_DirectMusicSynth, NULL, CLSCTX_INPROC_SERVER, &IID_IDirectMusicSynth8, (void**)&synth);
|
||||||
if (SUCCEEDED(hr))
|
if (SUCCEEDED(hr))
|
||||||
{
|
{
|
||||||
|
port->caps.dwSize = sizeof(port->caps);
|
||||||
hr = IDirectMusicSynth8_GetPortCaps(synth, &port->caps);
|
hr = IDirectMusicSynth8_GetPortCaps(synth, &port->caps);
|
||||||
IDirectMusicSynth8_Release(synth);
|
IDirectMusicSynth8_Release(synth);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue