aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi_mus2mid.c
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2017-06-19 22:32:10 +0300
committerWohlstand <admin@wohlnet.ru>2017-06-19 22:32:10 +0300
commit68fad96a61c23520d2ec0f90de0c5e03c96f2f82 (patch)
tree86c8678b1f93a8c8bb1641853373aaf156d66490 /src/adlmidi_mus2mid.c
parent850a5a1b1cbaa4b85990368bf998fce72639e156 (diff)
downloadlibADLMIDI-68fad96a61c23520d2ec0f90de0c5e03c96f2f82.tar.gz
libADLMIDI-68fad96a61c23520d2ec0f90de0c5e03c96f2f82.tar.bz2
libADLMIDI-68fad96a61c23520d2ec0f90de0c5e03c96f2f82.zip
Fixed compatibility with MSVC
Diffstat (limited to 'src/adlmidi_mus2mid.c')
-rw-r--r--src/adlmidi_mus2mid.c8
1 files changed, 4 insertions, 4 deletions
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);
}