Let iso_mbr_part_type 0xee override ban on 0xee without GPT

This commit is contained in:
Thomas Schmitt 2017-03-19 11:14:49 +01:00
parent 5600f3d726
commit 86f6ffc9c9

View File

@ -2109,7 +2109,8 @@ int iso_write_system_area(Ecma119Image *t, uint8_t *buf)
/* >>> ??? check for GPT magic number at byte 512 ff. ? */; /* >>> ??? check for GPT magic number at byte 512 ff. ? */;
if (sa_type == 0 && ((t->system_area_options & 3) || risk_of_ee) && if (sa_type == 0 && ((t->system_area_options & 3) || risk_of_ee) &&
(t->opts->part_like_isohybrid || t->gpt_req_count == 0)) { (t->opts->part_like_isohybrid || t->gpt_req_count == 0) &&
t->opts->iso_mbr_part_type != 0xee) {
for (i = 0; i < 4; i++) { for (i = 0; i < 4; i++) {
if (buf[446 + 16 * i + 4] == 0xee) { if (buf[446 + 16 * i + 4] == 0xee) {
iso_msgs_submit(0, iso_msgs_submit(0,