Throw error if imported_iso interval would be overwritten by multi-session

This commit is contained in:
2017-08-26 11:47:14 +02:00
parent cace41ec16
commit 028f9275d3
4 changed files with 17 additions and 5 deletions

View File

@@ -129,6 +129,8 @@ static int compute_partition_size(Ecma119Image *t, char *disk_path,
*size = (byte_count + BLOCK_SIZE - 1) / BLOCK_SIZE;
keep = iso_interval_reader_keep(t, ivr, 0);
iso_interval_reader_destroy(&ivr, 0);
if (keep < 0)
return keep;
return ISO_SUCCESS + (keep > 0);
}