diff --git a/INSTALL/Ventoy2Disk.exe b/INSTALL/Ventoy2Disk.exe index 63cb2bca..9c439a33 100644 Binary files a/INSTALL/Ventoy2Disk.exe and b/INSTALL/Ventoy2Disk.exe differ diff --git a/Ventoy2Disk/Ventoy2Disk/PhyDrive.c b/Ventoy2Disk/Ventoy2Disk/PhyDrive.c index 2fb5273d..5aaa0dbd 100644 --- a/Ventoy2Disk/Ventoy2Disk/PhyDrive.c +++ b/Ventoy2Disk/Ventoy2Disk/PhyDrive.c @@ -2289,6 +2289,8 @@ End: VDS_ChangeVtoyEFI2Basic(pPhyDrive->PhyDrive, StartSector * 512); } + if (pPhyDrive->PartStyle == 1) + { if (ChangeAttr || ((pPhyDrive->Part2GPTAttr >> 56) != 0xC0)) { Log("Change EFI partition attr %u <0x%llx> to <0x%llx>", ChangeAttr, pPhyDrive->Part2GPTAttr, 0xC000000000000001ULL); @@ -2302,6 +2304,7 @@ End: Log("Change EFI partition attr failed"); } } + } if (pGptInfo) {