VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Boot/Windows/BootDefs.h
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-09-13 00:16:14 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-09-13 01:15:13 +0200
commit7e73208e62b441f836f27433a4e297a0e07233b8 (patch)
treea7b059661a63639731654bad2ff2829da0f3cdba /src/Boot/Windows/BootDefs.h
parent22152878f883cb7d1e9ac56a5f59329afd26302b (diff)
downloadVeraCrypt-7e73208e62b441f836f27433a4e297a0e07233b8.tar.gz
VeraCrypt-7e73208e62b441f836f27433a4e297a0e07233b8.zip
Windows Bootloader: Fix Rescue Disk issue when Cascades and SHA256 used. It was caused by the bootloader becoming too big in this case with PIM implementation (larger than the limit of 31232 bytes). We also increase memory requirement for this case
Diffstat (limited to 'src/Boot/Windows/BootDefs.h')
-rw-r--r--src/Boot/Windows/BootDefs.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Boot/Windows/BootDefs.h b/src/Boot/Windows/BootDefs.h
index eb8629dc..5aef6589 100644
--- a/src/Boot/Windows/BootDefs.h
+++ b/src/Boot/Windows/BootDefs.h
@@ -14,7 +14,11 @@
#define TC_HEADER_Boot_BootDefs
// Total memory required (CODE + DATA + BSS + STACK + 0x100) in KBytes - determined from linker map.
-#define TC__BOOT_MEMORY_REQUIRED 42
+#ifdef TC_WINDOWS_BOOT_RESCUE_DISK_MODE
+ #define TC__BOOT_MEMORY_REQUIRED 44
+#else
+ #define TC__BOOT_MEMORY_REQUIRED 42
+#endif
#ifdef TC_WINDOWS_BOOT_SINGLE_CIPHER_MODE
# undef TC__BOOT_MEMORY_REQUIRED