Christian Costa : dmusic: Init port caps dwSize member before calling GetPortCaps.
Module: wine Branch: master Commit: f3e883878d8bfb6efc128293a461df8aa089e228 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f3e883878d8bfb6efc128293a4... Author: Christian Costa <titan.costa(a)gmail.com> Date: Mon Nov 5 09:46:13 2012 +0100 dmusic: Init port caps dwSize member before calling GetPortCaps. --- dlls/dmusic/dmusic.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/dmusic/dmusic.c b/dlls/dmusic/dmusic.c index d914ce4..bdefe3a 100644 --- a/dlls/dmusic/dmusic.c +++ b/dlls/dmusic/dmusic.c @@ -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); }
participants (1)
-
Alexandre Julliard