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

This commit is contained in:
longpanda 2020-07-24 23:23:40 +08:00
parent d063dbb7f2
commit f9763a44b2
2 changed files with 15 additions and 13 deletions

Binary file not shown.

View File

@ -1851,6 +1851,8 @@ int UpdateVentoy2PhyDrive(PHY_DRIVE_INFO *pPhyDrive)
if (!TryWritePart2(hDrive, StartSector))
{
if (pPhyDrive->PartStyle == 0)
{
ForceMBR = TRUE;
Log("Try write failed, now delete partition 2...");
@ -1868,7 +1870,7 @@ int UpdateVentoy2PhyDrive(PHY_DRIVE_INFO *pPhyDrive)
goto End;
}
}
}
PROGRESS_BAR_SET_POS(PT_FORMAT_PART2);