]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Ignore reserved space when do non-destructive installation via GUI. (#2168)
authorlongpanda <admin@ventoy.net>
Sun, 15 Jan 2023 01:41:46 +0000 (09:41 +0800)
committerlongpanda <admin@ventoy.net>
Sun, 15 Jan 2023 01:41:46 +0000 (09:41 +0800)
INSTALL/Ventoy2Disk.exe
INSTALL/Ventoy2Disk_ARM.exe
INSTALL/Ventoy2Disk_ARM64.exe
INSTALL/Ventoy2Disk_X64.exe
Ventoy2Disk/Ventoy2Disk/PhyDrive.c

index a50ab469ba277f97c54cea6e1f0e290ed3d90d90..29154563e6da9949a19a87d1cf4cc6450b0e2a57 100644 (file)
Binary files a/INSTALL/Ventoy2Disk.exe and b/INSTALL/Ventoy2Disk.exe differ
index 0a062955633c6a31ddd9f69bcd4d0646361c2367..f027ec9969d3b49607716e75efe2a3ca51c19b99 100644 (file)
Binary files a/INSTALL/Ventoy2Disk_ARM.exe and b/INSTALL/Ventoy2Disk_ARM.exe differ
index bd2c1466f641acc183f5f6f598f8b5a962cde27c..47d324ba744dbe7151e2eb6cabccee4793ae79e5 100644 (file)
Binary files a/INSTALL/Ventoy2Disk_ARM64.exe and b/INSTALL/Ventoy2Disk_ARM64.exe differ
index abeeea6a4e115c30d1b07eb5b31210c284618d9d..f4f1c1760d7905f11f865f20786898c629e5fd3b 100644 (file)
Binary files a/INSTALL/Ventoy2Disk_X64.exe and b/INSTALL/Ventoy2Disk_X64.exe differ
index 42d74d065274c0ac0b170023447910f4185faf82..c0cc8063d1889fcf2c04b2a5a661ea9915a09f73 100644 (file)
@@ -2150,7 +2150,6 @@ int PartitionResizeForVentoy(PHY_DRIVE_INFO *pPhyDrive)
        int rc = 1;\r
        int PhyDrive;\r
        int PartStyle;\r
-       INT64 ReservedValue;\r
        UINT64 RecudeBytes;\r
        GUID Guid;\r
        MBR_HEAD MBR;\r
@@ -2186,13 +2185,6 @@ int PartitionResizeForVentoy(PHY_DRIVE_INFO *pPhyDrive)
        PROGRESS_BAR_SET_POS(PT_LOCK_FOR_CLEAN);\r
 \r
        RecudeBytes = VENTOY_EFI_PART_SIZE;\r
-       ReservedValue = GetReservedSpaceInMB();\r
-       if (ReservedValue > 0)\r
-       {\r
-               Log("Reduce add reserved space %lldMB", (LONGLONG)ReservedValue);\r
-               RecudeBytes += (UINT64)(ReservedValue * SIZE_1MB);\r
-       }\r
-\r
 \r
        if (pPhyDrive->ResizeNoShrink == FALSE)\r
        {\r