Bug fix: Some drives return -150 as NWA of blank CD, rather than 0

This commit is contained in:
2011-07-31 08:31:11 +00:00
parent b0a4b7c15c
commit 62944e3b21
3 changed files with 8 additions and 3 deletions

View File

@@ -634,7 +634,7 @@ void spc_sense_write_params(struct burn_drive *d)
{
struct buffer *buf = NULL;
struct scsi_mode_data *m;
int dummy, alloc_len = 10;
int dummy1, dummy2, alloc_len = 10;
unsigned char *page;
struct command *c = NULL;
@@ -679,7 +679,7 @@ void spc_sense_write_params(struct burn_drive *d)
else if (d->status == BURN_DISC_BLANK ||
(d->current_is_cd_profile && d->status == BURN_DISC_APPENDABLE)) {
burn_drive_send_default_page_05(d, 0);
d->get_nwa(d, -1, &dummy, &dummy);
d->get_nwa(d, -1, &dummy1, &dummy2);
}
/* others are hopefully up to date from mmc_read_disc_info() */