mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 17:27:18 +00:00
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);
|
||||
if (SUCCEEDED(hr))
|
||||
{
|
||||
port->caps.dwSize = sizeof(port->caps);
|
||||
hr = IDirectMusicSynth8_GetPortCaps(synth, &port->caps);
|
||||
IDirectMusicSynth8_Release(synth);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue