From: longpanda Date: Fri, 22 Oct 2021 03:59:51 +0000 (+0800) Subject: Optimization for Ventoy2Disk.exe X-Git-Tag: v1.0.56~1 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/be5bc6f3b75589bc3b6a339283576f09b457d42d Optimization for Ventoy2Disk.exe --- diff --git a/INSTALL/Ventoy2Disk.exe b/INSTALL/Ventoy2Disk.exe index 63cb2bc..9c439a3 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 2fb5273..5aaa0db 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) {