Coordinated appending of partition images with situations other than

isohybrid MBR production or partition offset.
This commit is contained in:
2010-10-19 10:14:26 +02:00
parent b58d1e28ef
commit 1f486fd78b
4 changed files with 33 additions and 7 deletions

View File

@ -1615,6 +1615,11 @@ int ecma119_image_new(IsoImage *src, IsoWriteOpts *opts, Ecma119Image **img)
} else {
system_area_options = opts->system_area_options & 0xfc;
}
if ((system_area_options & 0xfc) != 0)
for (i = 0; i < 4; i++)
if (opts->appended_partitions[i] != NULL)
return ISO_NON_MBR_SYS_AREA;
target->system_area_data = NULL;
if (system_area != NULL) {
target->system_area_data = calloc(32768, 1);