VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2020-12-11 01:40:38 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2020-12-11 02:12:07 +0100
commitcb7adbfa26a5f47c5ef6dfd5bea46545480656f1 (patch)
tree573aeb60a810700ba35a1a5f2a30434490dec94b /src
parent20e0247471e51aadbfd0aedab7c7b8c3b1e60e55 (diff)
downloadVeraCrypt-cb7adbfa26a5f47c5ef6dfd5bea46545480656f1.tar.gz
VeraCrypt-cb7adbfa26a5f47c5ef6dfd5bea46545480656f1.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/Common/BootEncryption.cpp2
1 files changed, 1 insertions, 1 deletions
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);