[PATCH 2/5] dmusic: Enumerate ports for midi out and midi in devices in EnumPort.

Andrew Eikum aeikum at codeweavers.com
Thu Mar 29 08:07:40 CDT 2012


On Thu, Mar 29, 2012 at 08:52:45AM +0200, Christian Costa wrote:
> +        midiOutGetDevCapsW(index - 1, &caps, sizeof(caps));
>     ...
> +        CoCreateInstance(&CLSID_DirectMusicSynth, NULL, CLSCTX_INPROC_SERVER, &IID_IDirectMusicSynth8, (void**)&synth);
> +        IDirectMusicSynth8_GetPortCaps(synth, port_caps);

Maybe I'm pickier than most people, but I like error checking on these
sorts of calls. They make it easier to find what is happening when
something goes terribly and unexpectedly wrong.



More information about the wine-devel mailing list