Installed a test against non-zero msc1 on blank input drives

This commit is contained in:
Thomas Schmitt 2011-03-01 15:22:05 +00:00
parent 01d9e0c7bc
commit 428086190d
2 changed files with 9 additions and 3 deletions

View File

@ -1785,8 +1785,14 @@ not_found:;
} else if(adr_mode==3) {
o->fabricated_msc1= adr_num;
s= isoburn_disc_get_status(d);
if((flag & 1) && o->fabricated_msc1 >= 16
&& (s == BURN_DISC_FULL || s == BURN_DISC_APPENDABLE)) {
if(o->fabricated_msc1 > 0 && s != BURN_DISC_FULL
&& s != BURN_DISC_APPENDABLE) {
isoburn_msgs_submit(o, 0x00060000,
"Non-zero load offset given with blank input media",
0, "FAILURE", 0);
ret= 0; goto ex;
}
if((flag & 1) && o->fabricated_msc1 >= 16) {
/* adr_num is possibly 16 blocks too high */
ret= isoburn_read_iso_head(d, o->fabricated_msc1, &size,volid, 1|(1<<14));
if(ret==2)

View File

@ -1 +1 @@
#define Xorriso_timestamP "2011.03.01.145125"
#define Xorriso_timestamP "2011.03.01.152159"