mirror of https://github.com/ventoy/Ventoy.git
Optimization for Ventoy2Disk.exe
This commit is contained in:
parent
f3b65452f4
commit
be5bc6f3b7
Binary file not shown.
|
@ -2289,6 +2289,8 @@ End:
|
||||||
VDS_ChangeVtoyEFI2Basic(pPhyDrive->PhyDrive, StartSector * 512);
|
VDS_ChangeVtoyEFI2Basic(pPhyDrive->PhyDrive, StartSector * 512);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pPhyDrive->PartStyle == 1)
|
||||||
|
{
|
||||||
if (ChangeAttr || ((pPhyDrive->Part2GPTAttr >> 56) != 0xC0))
|
if (ChangeAttr || ((pPhyDrive->Part2GPTAttr >> 56) != 0xC0))
|
||||||
{
|
{
|
||||||
Log("Change EFI partition attr %u <0x%llx> to <0x%llx>", ChangeAttr, pPhyDrive->Part2GPTAttr, 0xC000000000000001ULL);
|
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");
|
Log("Change EFI partition attr failed");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (pGptInfo)
|
if (pGptInfo)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue