From 621f0961d4ac57bd95523d98a93b7bc014dedc7f Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Mon, 5 Jul 2004 08:36:26 +0000 Subject: [PATCH] fix compilation bug Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1869 --- src/gui/midi_oss.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/midi_oss.h b/src/gui/midi_oss.h index d770a12a..e7c66bde 100644 --- a/src/gui/midi_oss.h +++ b/src/gui/midi_oss.h @@ -47,7 +47,7 @@ public: }; void PlayMsg(Bit8u * msg) { Bit8u buf[128];Bitu pos=0; - Bitu len=MIDI_evt_len[msg & 0xff]; + Bitu len=MIDI_evt_len[*msg]; for (;len>0;len--) { buf[pos++] = SEQ_MIDIPUTC; buf[pos++] = *msg;