1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 19:08:26 -06:00

Windows: Avoid modifying BootArguments structure and use __unaligned keyword to inform compiler that pointer is unaligned.

This avoids issues with existing bootloaders
This commit is contained in:
Mounir IDRASSI
2024-11-16 01:50:06 +01:00
parent c86577fc0e
commit 9c9870b103
4 changed files with 4 additions and 5 deletions

View File

@@ -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;