Bug fix: CD-ROM media got attributed random lead-in and lead-out adresses

This commit is contained in:
2010-05-01 08:29:28 +00:00
parent 8b1b3f08c6
commit 9323cceff1
3 changed files with 12 additions and 3 deletions

View File

@ -1974,8 +1974,13 @@ void mmc_read_atip(struct burn_drive *d)
c.dir = FROM_DRIVE;
d->issue_command(d, &c);
burn_print(1, "atip shit for you\n");
/* ts B00501 : now caring for error */
if (c.error) {
d->erasable= 0;
d->start_lba= 0;
d->end_lba= 0;
return;
}
/* ts A61021 */
data = c.page->data;