Previous 199869 Revisions Next

r32055 Wednesday 10th September, 2014 at 17:46:04 UTC by Oliver Stöneberg
replaced a few more exit() calls with fatalerror() (nw)
[src/lib/formats]apridisk.c d64_dsk.c

trunk/src/lib/formats/d64_dsk.c
r32054r32055
673673      gcr_track_size = sectors_per_track * SECTOR_SIZE_GCR;
674674      gcr_track_data = (UINT8 *)alloca(gcr_track_size);
675675
676      if (buflen < gcr_track_size) { printf("D64 track buffer too small: %u!", (UINT32)buflen); exit(-1); }
676      if (buflen < gcr_track_size) { fatalerror("D64 track buffer too small: %u!\n", (UINT32)buflen); }
677677
678678      /* read D64 track data */
679679      floppy_image_read(floppy, d64_track_data, track_offset, d64_track_size);
trunk/src/lib/formats/apridisk.c
r32054r32055
44
55***************************************************************************/
66
7#include "emu.h"
78#include "apridisk.h"
89#include "imageutl.h"
910#include "coretmpl.h"
r32054r32055
188189
189190            /* not sure if this is possible */
190191            if (length != 512) {
191               printf("Compression unsupported");
192               exit(-1); // TODO: NO!
192               fatalerror("Compression unsupported\n");
193193            }
194194
195195            memset(&tag->sectors[cur_sector].data, value, length);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team