Skip to content

Commit

Permalink
Ignore reserved space when do non-destructive installation via GUI. (v…
Browse files Browse the repository at this point in the history
  • Loading branch information
ventoy committed Jan 15, 2023
1 parent 5067020 commit c9939a8
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 8 deletions.
Binary file modified INSTALL/Ventoy2Disk.exe
Binary file not shown.
Binary file modified INSTALL/Ventoy2Disk_ARM.exe
Binary file not shown.
Binary file modified INSTALL/Ventoy2Disk_ARM64.exe
Binary file not shown.
Binary file modified INSTALL/Ventoy2Disk_X64.exe
Binary file not shown.
8 changes: 0 additions & 8 deletions Ventoy2Disk/Ventoy2Disk/PhyDrive.c
Original file line number Diff line number Diff line change
Expand Up @@ -2150,7 +2150,6 @@ int PartitionResizeForVentoy(PHY_DRIVE_INFO *pPhyDrive)
int rc = 1;
int PhyDrive;
int PartStyle;
INT64 ReservedValue;
UINT64 RecudeBytes;
GUID Guid;
MBR_HEAD MBR;
Expand Down Expand Up @@ -2186,13 +2185,6 @@ int PartitionResizeForVentoy(PHY_DRIVE_INFO *pPhyDrive)
PROGRESS_BAR_SET_POS(PT_LOCK_FOR_CLEAN);

RecudeBytes = VENTOY_EFI_PART_SIZE;
ReservedValue = GetReservedSpaceInMB();
if (ReservedValue > 0)
{
Log("Reduce add reserved space %lldMB", (LONGLONG)ReservedValue);
RecudeBytes += (UINT64)(ReservedValue * SIZE_1MB);
}


if (pPhyDrive->ResizeNoShrink == FALSE)
{
Expand Down

0 comments on commit c9939a8

Please sign in to comment.