diff --git a/.gitattributes b/.gitattributes index 53c9c6ef9c3..b14cd2becb4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -8044,10 +8044,12 @@ src/regtests/chdman/chdtest.py svneol=native#text/plain src/regtests/chdman/input/createcd_cue_empty/in.bin -text src/regtests/chdman/input/createcd_cue_empty/in.cue svneol=native#text/plain src/regtests/chdman/input/createcd_iso_empty/in.iso -text +src/regtests/chdman/input/createcd_nrg_empty/in.nrg -text src/regtests/chdman/input/createcd_toc_empty/data.bin -text src/regtests/chdman/input/createcd_toc_empty/in.toc svneol=native#text/plain src/regtests/chdman/output/createcd_cue_empty/out.chd -text src/regtests/chdman/output/createcd_iso_empty/out.chd -text +src/regtests/chdman/output/createcd_nrg_empty/out.chd -text src/regtests/chdman/output/createcd_toc_empty/out.chd -text src/regtests/jedutil/baseline/18cv8/18cv8_combinatorial_feedback.txt svneol=native#text/plain src/regtests/jedutil/baseline/18cv8/18cv8_register_feedback.txt svneol=native#text/plain diff --git a/src/lib/util/chdcd.c b/src/lib/util/chdcd.c index a75e1d5edd8..6cd7f624a4e 100644 --- a/src/lib/util/chdcd.c +++ b/src/lib/util/chdcd.c @@ -388,7 +388,7 @@ chd_error chdcd_parse_nero(const char *tocfname, cdrom_toc &outtoc, chdcd_track_ index2 = read_uint64(infile); // printf("Track %d: sector size %d mode %x index0 %llx index1 %llx index2 %llx (pregap %d sectors, length %d sectors)\n", track, size, mode, index0, index1, index2, (UINT32)(index1-index0)/size, (UINT32)(index2-index1)/size); - outinfo.track[track-1].fname.cpy(path).cat(tocfname); + outinfo.track[track-1].fname.cpy(tocfname); outinfo.track[track-1].offset = offset + (UINT32)(index1-index0); outinfo.track[track-1].idx0offs = 0; outinfo.track[track-1].idx1offs = 0; diff --git a/src/regtests/chdman/input/createcd_nrg_empty/in.nrg b/src/regtests/chdman/input/createcd_nrg_empty/in.nrg new file mode 100644 index 00000000000..4c2644a2fc7 Binary files /dev/null and b/src/regtests/chdman/input/createcd_nrg_empty/in.nrg differ diff --git a/src/regtests/chdman/output/createcd_nrg_empty/out.chd b/src/regtests/chdman/output/createcd_nrg_empty/out.chd new file mode 100644 index 00000000000..8d107159857 Binary files /dev/null and b/src/regtests/chdman/output/createcd_nrg_empty/out.chd differ