From 68fad96a61c23520d2ec0f90de0c5e03c96f2f82 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Mon, 19 Jun 2017 22:32:10 +0300 Subject: Fixed compatibility with MSVC --- src/adlmidi_mus2mid.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/adlmidi_mus2mid.c') diff --git a/src/adlmidi_mus2mid.c b/src/adlmidi_mus2mid.c index 956510b..8462cd9 100644 --- a/src/adlmidi_mus2mid.c +++ b/src/adlmidi_mus2mid.c @@ -225,7 +225,7 @@ int AdlMidi_mus2midi(uint8_t *in, uint32_t insize, int channelMap[MIDI_MAXCHANNELS], currentChannel; if (insize < MUS_HEADERSIZE) { - //_WM_GLOBAL_ERROR(__FUNCTION__, __LINE__, WM_ERR_CORUPT, "(too short)", 0); + /*_WM_GLOBAL_ERROR(__FUNCTION__, __LINE__, WM_ERR_CORUPT, "(too short)", 0);*/ return (-1); } @@ -241,16 +241,16 @@ int AdlMidi_mus2midi(uint8_t *in, uint32_t insize, header.instrCnt = READ_INT16(&in[12]); if (memcmp(header.ID, MUS_ID, 4)) { - //_WM_GLOBAL_ERROR(__FUNCTION__, __LINE__, WM_ERR_NOT_MUS, NULL, 0); + /*_WM_GLOBAL_ERROR(__FUNCTION__, __LINE__, WM_ERR_NOT_MUS, NULL, 0);*/ return (-1); } if (insize < (uint32_t)header.scoreLen + (uint32_t)header.scoreStart) { - //_WM_GLOBAL_ERROR(__FUNCTION__, __LINE__, WM_ERR_CORUPT, "(too short)", 0); + /*_WM_GLOBAL_ERROR(__FUNCTION__, __LINE__, WM_ERR_CORUPT, "(too short)", 0);*/ return (-1); } /* channel #15 should be excluded in the numchannels field: */ if (header.channels > MIDI_MAXCHANNELS - 1) { - //_WM_GLOBAL_ERROR(__FUNCTION__, __LINE__, WM_ERR_INVALID, NULL, 0); + /*_WM_GLOBAL_ERROR(__FUNCTION__, __LINE__, WM_ERR_INVALID, NULL, 0);*/ return (-1); } -- cgit v1.2.3