diff --git a/src/grub2/hiperiso_cmd.c b/src/grub2/hiperiso_cmd.c index 1c6d1ef..cc0187c 100644 --- a/src/grub2/hiperiso_cmd.c +++ b/src/grub2/hiperiso_cmd.c @@ -629,7 +629,7 @@ static int hiperiso_check_official_device(grub_device_t dev) { hiperiso_gpt_part_tbl *PartTbl = g_hiperiso_part_info->PartTbl; if (PartTbl[1].StartLBA != PartTbl[0].LastLBA + 1 || - (PartTbl[1].LastLBA + 1 - PartTbl[1].StartLBA) != 131072) + (PartTbl[1].LastLBA + 1 - PartTbl[1].StartLBA) != 65536) { grub_file_close(file); return hiperiso_set_check_result(6, "Disk partition layout check failed."); @@ -639,7 +639,7 @@ static int hiperiso_check_official_device(grub_device_t dev) { hiperiso_part_table *PartTbl = g_hiperiso_part_info->MBR.PartTbl; if (PartTbl[1].StartSectorId != PartTbl[0].StartSectorId + PartTbl[0].SectorCount || - PartTbl[1].SectorCount != 131072) + PartTbl[1].SectorCount != 65536) { grub_file_close(file); return hiperiso_set_check_result(6, "Disk partition layout check failed."); @@ -650,7 +650,7 @@ static int hiperiso_check_official_device(grub_device_t dev) { offset = partition->start + partition->len; partition = file->device->disk->partition; - if ((partition->number != 1) || (partition->len != 131072) || (offset != partition->start)) + if ((partition->number != 1) || (partition->len != 65536) || (offset != partition->start)) { grub_file_close(file); return hiperiso_set_check_result(7, "Disk partition layout check failed."); diff --git a/src/grub2/hiperiso_def.h b/src/grub2/hiperiso_def.h index 07fa7eb..168410b 100644 --- a/src/grub2/hiperiso_def.h +++ b/src/grub2/hiperiso_def.h @@ -1217,7 +1217,7 @@ int hiperiso_unregister_all_cmd(void); int hiperiso_chain_file_size(const char *path); int hiperiso_chain_file_read(const char *path, int offset, int len, void *buf); -#define HISO_CMD_CHECK(a) if (67108864 != g_hiperiso_disk_part_size[a]) hiperiso_syscall0(exit) +#define HISO_CMD_CHECK(a) if (33554432 != g_hiperiso_disk_part_size[a]) hiperiso_syscall0(exit) #define hiso_theme_random_boot_second 0 #define hiso_theme_random_boot_day 1