Optimization for Ventoy2Disk.exe

This commit is contained in:
longpanda 2021-10-22 11:59:51 +08:00
parent f3b65452f4
commit be5bc6f3b7
2 changed files with 3 additions and 0 deletions

Binary file not shown.

View File

@ -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)
{