/advdemos/trunk/mpeg2/store.c |
---|
389,13 → 389,13 |
f = (struct framebuf_struct *)malloc(sizeof(struct framebuf_struct)); |
if (!f) { |
cputs("Not enough memory!!!\n"); |
sys_end(); |
exit(1); |
} |
f->f = (WORD *)malloc(framebuf_sz); |
if (!f->f) { |
cputs("Not enough memory for buffer!!!\n"); |
sys_end(); |
exit(1); |
} |
f->next = framebuf_free; |
495,7 → 495,7 |
f = framebuf_first; |
if (!f) |
sys_abort(69); // should never happen |
exit(69); // should never happen |
framebuf_first = framebuf_first->next; |