diff --git a/src/cdrom/cdrom_image_backend.c b/src/cdrom/cdrom_image_backend.c index 437c94a87..b5c770b29 100644 --- a/src/cdrom/cdrom_image_backend.c +++ b/src/cdrom/cdrom_image_backend.c @@ -888,6 +888,8 @@ cdi_load_cue(cd_img_t *cdi, const wchar_t *cuefile) success = cdi_add_track(cdi, &trk, &shift, prestart, &total_pregap, cur_pregap); else success = 1; + if (!success) + break; can_add_track = 0; memset(ansi, 0, MAX_FILENAME_LENGTH * sizeof(char));