[AD] very small fix for MIDI.c |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
hello attached is a patch for midi.c as you may now, midi files can be type 0 or type 1 and this line data = pack_mgetw(fp); /* MIDI file type */ if ((data != 0) && (data != 1)) goto err; check that if suppose data is 0.... it wont go err suppose data is 1.... it wont go err suppose data is 3... it wont go err! that's why i've changed it to be if ((data != 0) || (data != 1)) patch attached have fun ;)
Attachment:
midi.c.dif
Description: video/dv
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |