Commit f3e88387 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

dmusic: Init port caps dwSize member before calling GetPortCaps.

parent f7a9df5e
......@@ -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);
}
......
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