Made a final abort check before burning begins

This commit is contained in:
Thomas Schmitt 2008-02-14 12:06:52 +00:00
parent 6391cbbf84
commit 29e3df2149
2 changed files with 7 additions and 3 deletions

View File

@ -1 +1 @@
#define Xorriso_timestamP "2008.02.14.101916"
#define Xorriso_timestamP "2008.02.14.120557"

View File

@ -775,9 +775,9 @@ int Xorriso_write_session(struct XorrisO *xorriso, int flag)
if(xorriso->patch_isolinux_image) {
if(ret==1) {
relax|= isoburn_igopt_allow_full_ascii;
el_torito_patch_isolinux_image(bootimg);
sprintf(xorriso->info_text, "Patched alleged isolinux boot image");
sprintf(xorriso->info_text, "Patching alleged isolinux boot image");
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "NOTE", 0);
el_torito_patch_isolinux_image(bootimg);
} else {
sprintf(xorriso->info_text,
"Could not find any boot image for -boot_image isolinux patch");
@ -830,6 +830,10 @@ int Xorriso_write_session(struct XorrisO *xorriso, int flag)
sopts.fifo_size= xorriso->fs * 2048;
#endif /* NIX */
/* Make final abort check before starting expensive activities */
ret= Xorriso_eval_problem_status(xorriso, 1, 0);
if(ret<0)
{ret= 0; goto ex;}
Xorriso_set_abort_severity(xorriso, 1);
if(xorriso->out_drive_handle == xorriso->in_drive_handle ||
xorriso->in_drive_handle == NULL) {