Previous 15994 Revisions Next

r15606 Sunday 15th July, 2012 at 19:04:38 UTC by Wilbert Pol
upd1771.c: Added a check to prevent reading out of bounds (nw).
[src/mess/audio]upd1771.c

src/mess/audio/upd1771.c
r15605r15606
299299         //6Khz(ish) DIGI playback
300300
301301         //end capture
302         if (state->packet[state->index-2] == 0xFE &&
302         if (state->index >= 2 && state->packet[state->index-2] == 0xFE &&
303303            state->packet[state->index-1] == 0x00){
304304                //TODO play capture!
305305            state->index = 0;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team