Reset xorriso->boot_count when image gets discarded
This commit is contained in:
@ -85,6 +85,7 @@ int Xorriso_create_empty_iso(struct XorrisO *xorriso, int flag)
|
||||
Xorriso_destroy_hln_array(xorriso, 0);
|
||||
xorriso->loaded_volid[0]= 0;
|
||||
xorriso->volset_change_pending= 0;
|
||||
xorriso->boot_count= 0;
|
||||
xorriso->no_volset_present= 0;
|
||||
}
|
||||
|
||||
@ -108,6 +109,7 @@ int Xorriso_create_empty_iso(struct XorrisO *xorriso, int flag)
|
||||
xorriso->in_sector_map= NULL;
|
||||
Xorriso_update_volid(xorriso, 0);
|
||||
xorriso->volset_change_pending= 0;
|
||||
xorriso->boot_count= 0;
|
||||
xorriso->no_volset_present= 0;
|
||||
return(1);
|
||||
}
|
||||
@ -508,13 +510,7 @@ int Xorriso_boot_image_status(struct XorrisO *xorriso, char *filter, FILE *fp,
|
||||
}
|
||||
if(bin_path_in_use) {
|
||||
is_default= !xorriso->boot_image_cat_hidden;
|
||||
hpt= "on";
|
||||
if(xorriso->boot_image_cat_hidden == 0)
|
||||
hpt= "off";
|
||||
else if(xorriso->boot_image_cat_hidden == 1)
|
||||
hpt= "iso_rr";
|
||||
else if(xorriso->boot_image_cat_hidden == 2)
|
||||
hpt= "joliet";
|
||||
hpt= Xorriso__hide_mode_text(xorriso->boot_image_cat_hidden & 3, 0);
|
||||
sprintf(line, "-boot_image %s cat_hidden=%s\n", form, hpt);
|
||||
if(!(is_default && no_defaults))
|
||||
Xorriso_status_result(xorriso,filter,fp,flag&2);
|
||||
|
Reference in New Issue
Block a user