From cb7adbfa26a5f47c5ef6dfd5bea46545480656f1 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Fri, 11 Dec 2020 01:40:38 +0100 Subject: Windows: Don't check for availability of 32KB of free space for bootloader in UEFI boot mode since in this case bootloader will be stored in EFI partition and not in the unallocated space at the beginning of the drive --- src/Common/BootEncryption.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Common/BootEncryption.cpp b/src/Common/BootEncryption.cpp index d89c4df8..5ca39afe 100644 --- a/src/Common/BootEncryption.cpp +++ b/src/Common/BootEncryption.cpp @@ -5187,7 +5187,7 @@ namespace VeraCrypt if (SystemDriveIsDynamic()) throw ErrorException ("SYSENC_UNSUPPORTED_FOR_DYNAMIC_DISK", SRC_POS); - if (config.InitialUnallocatedSpace < TC_BOOT_LOADER_AREA_SIZE) + if (!config.SystemPartition.IsGPT && (config.InitialUnallocatedSpace < TC_BOOT_LOADER_AREA_SIZE)) throw ErrorException ("NO_SPACE_FOR_BOOT_LOADER", SRC_POS); DISK_GEOMETRY_EX geometry = GetDriveGeometry (config.DriveNumber); -- cgit v1.2.3