Made Xorriso_overwrite_iso_head() ready for long block adresses

This commit is contained in:
Thomas Schmitt 2024-03-22 17:59:56 +01:00
parent f1e00c3e4c
commit 9377f667b5
2 changed files with 4 additions and 4 deletions

View File

@ -3015,19 +3015,19 @@ ex:
int Xorriso_overwrite_iso_head(struct XorrisO *xorriso,
struct burn_drive *drive, char *head_buffer,
int lba, int flag)
off_t lba, int flag)
{
int ret;
off_t to_write;
to_write= 64 * 1024;
burn_drive_reset_simulate(drive, xorriso->do_dummy);
ret= burn_random_access_write(drive, (off_t) lba * (off_t) 2048,
ret= burn_random_access_write(drive, lba * (off_t) 2048,
head_buffer, to_write, 1);
if(ret <= 0) {
Xorriso_process_msg_queues(xorriso, 0);
sprintf(xorriso->info_text,
"Cannot write new ISO image head to LBA %d", lba);
"Cannot write new ISO image head to LBA %.f", (double) lba);
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
return(0);
}

View File

@ -1 +1 @@
#define Xorriso_timestamP "2024.03.22.161812"
#define Xorriso_timestamP "2024.03.22.165841"