Commit f9763a44 authored by longpanda's avatar longpanda
Browse files

Don't delete partition when update in GPT partition style.

parent d063dbb7
No preview for this file type
...@@ -1851,6 +1851,8 @@ int UpdateVentoy2PhyDrive(PHY_DRIVE_INFO *pPhyDrive) ...@@ -1851,6 +1851,8 @@ int UpdateVentoy2PhyDrive(PHY_DRIVE_INFO *pPhyDrive)
if (!TryWritePart2(hDrive, StartSector)) if (!TryWritePart2(hDrive, StartSector))
{
if (pPhyDrive->PartStyle == 0)
{ {
ForceMBR = TRUE; ForceMBR = TRUE;
Log("Try write failed, now delete partition 2..."); Log("Try write failed, now delete partition 2...");
...@@ -1868,7 +1870,7 @@ int UpdateVentoy2PhyDrive(PHY_DRIVE_INFO *pPhyDrive) ...@@ -1868,7 +1870,7 @@ int UpdateVentoy2PhyDrive(PHY_DRIVE_INFO *pPhyDrive)
goto End; goto End;
} }
} }
}
PROGRESS_BAR_SET_POS(PT_FORMAT_PART2); PROGRESS_BAR_SET_POS(PT_FORMAT_PART2);
......
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