<br><br><div class="gmail_quote">2012/3/29 Andrew Eikum <span dir="ltr"><<a href="mailto:aeikum@codeweavers.com">aeikum@codeweavers.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, Mar 29, 2012 at 08:52:45AM +0200, Christian Costa wrote:<br>
> +        midiOutGetDevCapsW(index - 1, &caps, sizeof(caps));<br>
</div>>     ...<br>
<div class="im">> +        CoCreateInstance(&CLSID_DirectMusicSynth, NULL, CLSCTX_INPROC_SERVER, &IID_IDirectMusicSynth8, (void**)&synth);<br>
> +        IDirectMusicSynth8_GetPortCaps(synth, port_caps);<br>
<br>
</div>Maybe I'm pickier than most people, but I like error checking on these<br>
sorts of calls. They make it easier to find what is happening when<br>
something goes terribly and unexpectedly wrong.<br>
</blockquote></div><br>It's the original code. I decided to keep it in this patch and add error checking in the patch that comes just after.<br>I can merge them but I prefer to do things incrementally as much as possible.<br>