Bug fix: Bit 15 of iso_write_opts_set_system_area did not work with generic MBR

This commit is contained in:
Thomas Schmitt 2017-06-29 23:06:07 +02:00
parent d7737e3ed5
commit 6282bbc0bc

View File

@ -2128,7 +2128,7 @@ int iso_write_system_area(Ecma119Image *t, uint8_t *buf)
if (sa_type == 0 && ( if (sa_type == 0 && (
(t->system_area_options & 3) || (t->system_area_options & 3) ||
(t->system_area_options & (1 << 14)) || (t->system_area_options & (1 << 14)) ||
(((t->system_area_options >> 2) & 0x3f) == 2 && (((t->system_area_options >> 10) & 15) != 1 &&
(t->system_area_options & (1 << 15))) (t->system_area_options & (1 << 15)))
)) { )) {
/* This is an MBR which shall have a bootable/active flag /* This is an MBR which shall have a bootable/active flag