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/Common/Cache.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/Common/Cache.h')
-rw-r--r-- | src/Common/Cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Common/Cache.h b/src/Common/Cache.h index 84bb6937..cfab6f4f 100644 --- a/src/Common/Cache.h +++ b/src/Common/Cache.h @@ -21,6 +21,6 @@ extern int cacheEmpty; void AddPasswordToCache (Password *password, int pim, BOOL bCachePim); -void AddLegacyPasswordToCache (PasswordLegacy *password, int pim); +void AddLegacyPasswordToCache (__unaligned PasswordLegacy *password, int pim); int ReadVolumeHeaderWCache (BOOL bBoot, BOOL bCache, BOOL bCachePim, unsigned char *header, Password *password, int pkcs5_prf, int pim, PCRYPTO_INFO *retInfo); void WipeCache (void); |