mirror of https://github.com/ZDoom/fluidsynth.git
parent
8af2eb4d7c
commit
cf1975e35f
|
@ -1396,7 +1396,7 @@ fluid_synth_sysex_midi_tuning (fluid_synth_t *synth, const char *data, int len,
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (len < 11 || data[4] & 0x80 || data[5] & 0x80 || data[6] & 0x80
|
if (len < 11 || data[4] & 0x80 || data[5] & 0x80 || data[6] & 0x80
|
||||||
|| len != data[5] * 4 + 7)
|
|| len != data[6] * 4 + 7)
|
||||||
return FLUID_OK;
|
return FLUID_OK;
|
||||||
|
|
||||||
bank = *dataptr++;
|
bank = *dataptr++;
|
||||||
|
|
Loading…
Reference in New Issue