From d821b0ef927b47cd5e5fa3c519a2776c91a0861c Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 22 Aug 2020 13:01:56 +0300 Subject: [PATCH] - fixed event processing in XMI reader Event pointer was moved forward twice leaving arbitrary garbage data in the stream https://forum.zdoom.org/viewtopic.php?t=69631 --- source/midisources/midisource_xmi.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/source/midisources/midisource_xmi.cpp b/source/midisources/midisource_xmi.cpp index 2e1e512..bbd282c 100644 --- a/source/midisources/midisource_xmi.cpp +++ b/source/midisources/midisource_xmi.cpp @@ -483,7 +483,6 @@ uint32_t *XMISong::SendCommand (uint32_t *events, EventSource due, uint32_t dela { events[2] = event | (data1<<8) | (data2<<16); } - events += 3; if ((event & 0x70) == (MIDI_NOTEON & 0x70))