diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2024-11-16 01:50:06 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2024-11-16 01:50:06 +0100 |
commit | 9c9870b1038ca4c91f7cce556e5f16f783a309fc (patch) | |
tree | 18e6a1760521f0c7eddfadd3ccf6766078852c8f /src/Boot/Windows/BootCommon.h | |
parent | c86577fc0ed481f622793e66627058928ade02a9 (diff) | |
download | VeraCrypt-9c9870b1038ca4c91f7cce556e5f16f783a309fc.tar.gz VeraCrypt-9c9870b1038ca4c91f7cce556e5f16f783a309fc.zip |
Windows: Avoid modifying BootArguments structure and use __unaligned keyword to inform compiler that pointer is unaligned.
This avoids issues with existing bootloaders
Diffstat (limited to 'src/Boot/Windows/BootCommon.h')
-rw-r--r-- | src/Boot/Windows/BootCommon.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Boot/Windows/BootCommon.h b/src/Boot/Windows/BootCommon.h index 0e6c973c..45a1a650 100644 --- a/src/Boot/Windows/BootCommon.h +++ b/src/Boot/Windows/BootCommon.h @@ -14,7 +14,6 @@ #define TC_HEADER_Boot_BootCommon #include "Common/Password.h" -#include "Crypto/config.h" #include "BootDefs.h" // The user will be advised to upgrade the rescue disk if upgrading from the following or any previous version @@ -59,7 +58,7 @@ typedef struct uint16 CryptoInfoOffset; uint16 CryptoInfoLength; uint32 HeaderSaltCrc32; - CRYPTOPP_ALIGN_DATA(8) PasswordLegacy BootPassword; + PasswordLegacy BootPassword; uint64 HiddenSystemPartitionStart; uint64 DecoySystemPartitionStart; uint32 Flags; |