Fixed handling of empty current bin_path and already attached boot images

This commit is contained in:
Thomas Schmitt 2010-04-27 07:49:31 +00:00
parent 853d71b947
commit c4cf1ced64
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
#define Xorriso_timestamP "2010.04.27.072331" #define Xorriso_timestamP "2010.04.27.074834"

View File

@ -2364,7 +2364,8 @@ int Xorriso_write_session(struct XorrisO *xorriso, int flag)
ret= Xorriso_attach_boot_image(xorriso, xorriso->boot_count == 0); ret= Xorriso_attach_boot_image(xorriso, xorriso->boot_count == 0);
if(ret <= 0) if(ret <= 0)
goto ex; goto ex;
}
if(xorriso->boot_count > 0) {
/* Eventually rename boot catalog node to changed boot_image_cat_path */ /* Eventually rename boot catalog node to changed boot_image_cat_path */
if(is_bootable > 0) { if(is_bootable > 0) {
ret= Xorriso_path_from_node(xorriso, (IsoNode *) bootcat_node, sfe, 0); ret= Xorriso_path_from_node(xorriso, (IsoNode *) bootcat_node, sfe, 0);