Commit be5bc6f3 authored by longpanda's avatar longpanda
Browse files

Optimization for Ventoy2Disk.exe

parent f3b65452
No preview for this file type
...@@ -2289,6 +2289,8 @@ End: ...@@ -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: ...@@ -2302,6 +2304,7 @@ End:
Log("Change EFI partition attr failed"); Log("Change EFI partition attr failed");
} }
} }
}
if (pGptInfo) if (pGptInfo)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment