Made Xorriso_set_system_area() ready for long block adresses

This commit is contained in:
Thomas Schmitt 2024-03-21 21:34:11 +01:00
parent fb780b59cb
commit d635037661
2 changed files with 6 additions and 6 deletions

View File

@ -401,9 +401,9 @@ int Xorriso_set_system_area(struct XorrisO *xorriso,
struct isoburn_imgen_opts *sopts, struct isoburn_imgen_opts *sopts,
int flag) int flag)
{ {
int ret, options, system_area_options, start_lba, image_blocks; int ret, options, system_area_options;
int sa_loaded, read_count, i, read_sum= 0; int sa_loaded, read_count, i, read_sum= 0;
off_t iso_lba= -1; off_t iso_lba= -1, start_lba, image_blocks;
char volid[33]; char volid[33];
FILE *fp= NULL; FILE *fp= NULL;
char *buf= NULL, *bufpt= NULL, *intvl; char *buf= NULL, *bufpt= NULL, *intvl;
@ -471,9 +471,9 @@ int Xorriso_set_system_area(struct XorrisO *xorriso,
(((unsigned int) ub[461]) << 24)); (((unsigned int) ub[461]) << 24));
iso_lba= -1; iso_lba= -1;
ret= isoburn_disc_get_msc1(in_drive, &start_lba); ret= isoburn_disc_get_msc1_v2(in_drive, &start_lba);
if(ret > 0) { if(ret > 0) {
ret= isoburn_read_iso_head(in_drive, start_lba, &image_blocks, ret= isoburn_read_iso_head_v2(in_drive, start_lba, &image_blocks,
volid, 1); volid, 1);
if(ret > 0) if(ret > 0)
iso_lba= start_lba + image_blocks; iso_lba= start_lba + image_blocks;

View File

@ -1 +1 @@
#define Xorriso_timestamP "2024.03.21.193959" #define Xorriso_timestamP "2024.03.21.203354"