Re: [AD] tiny seekmidi fix

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> > There's a small bug in seekmidi, for some .mid files midi_pos will wrap
> > around to the negative length inside the loop when passing an argument
> > bigger than the length, causing an endless loop. My patch fixes it.
>
> Looks fine.

Err... I answered too quickly :-(

Elias, did you investigate the cascading effects of the bug ? For example,
line 1365, midi_pos is again tested against -1. Thanks in advance.

- Eric




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/