From: longpanda Date: Sun, 15 Jan 2023 01:41:46 +0000 (+0800) Subject: Ignore reserved space when do non-destructive installation via GUI. (#2168) X-Git-Tag: v1.0.89~35 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/c9939a8cfc1850381cb712c734e4ba6d014d3d0d?ds=sidebyside Ignore reserved space when do non-destructive installation via GUI. (#2168) --- diff --git a/INSTALL/Ventoy2Disk.exe b/INSTALL/Ventoy2Disk.exe index a50ab46..2915456 100644 Binary files a/INSTALL/Ventoy2Disk.exe and b/INSTALL/Ventoy2Disk.exe differ diff --git a/INSTALL/Ventoy2Disk_ARM.exe b/INSTALL/Ventoy2Disk_ARM.exe index 0a06295..f027ec9 100644 Binary files a/INSTALL/Ventoy2Disk_ARM.exe and b/INSTALL/Ventoy2Disk_ARM.exe differ diff --git a/INSTALL/Ventoy2Disk_ARM64.exe b/INSTALL/Ventoy2Disk_ARM64.exe index bd2c146..47d324b 100644 Binary files a/INSTALL/Ventoy2Disk_ARM64.exe and b/INSTALL/Ventoy2Disk_ARM64.exe differ diff --git a/INSTALL/Ventoy2Disk_X64.exe b/INSTALL/Ventoy2Disk_X64.exe index abeeea6..f4f1c17 100644 Binary files a/INSTALL/Ventoy2Disk_X64.exe and b/INSTALL/Ventoy2Disk_X64.exe differ diff --git a/Ventoy2Disk/Ventoy2Disk/PhyDrive.c b/Ventoy2Disk/Ventoy2Disk/PhyDrive.c index 42d74d0..c0cc806 100644 --- a/Ventoy2Disk/Ventoy2Disk/PhyDrive.c +++ b/Ventoy2Disk/Ventoy2Disk/PhyDrive.c @@ -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; @@ -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) {