<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Le 09/01/2013 03:12, Johannes Kroll a
      écrit :<br>
    </div>
    <blockquote cite="mid:20130109031200.51691970@sampi" type="cite">
      <pre wrap="">While using the KORG Kontrol Editor software [1] under Wine to configure
my nanoPAD2 MIDI controller, I noticed that uploading parameters to the
hardware doesn't work. The program displays a timeout message.

The program relies on the MIDI driver to remove data after the SysEx
termination byte [2], but the Wine's winmm implementation doesn't do
this. The complete MIDIHDR buffer is sent, including excess bytes in the
case when the buffer is larger than the MIDI message.

The attached patch fixes the problem by truncating SysEx messages after
the termination byte, ignoring any excess bytes.

I tested the patch with KORG Kontrol Editor under Ubuntu 12.04 64-bit
(32-bit wine).

[1] <a class="moz-txt-link-freetext" href="http://www.korg.co.uk/support/downloads/nano2_dl.php">http://www.korg.co.uk/support/downloads/nano2_dl.php</a>
[2] <a class="moz-txt-link-freetext" href="http://home.roadrunner.com/~jgglatt/tech/midispec/sysex.htm">http://home.roadrunner.com/~jgglatt/tech/midispec/sysex.htm</a></pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">
</pre>
    </blockquote>
    Hi,<br>
    <br>
    Please be consistent when using space. 1 space before and after
    operators (<, ==, =, ...).<br>
    <br>
    Christian<br>
  </body>
</html>