VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Cache.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2024-11-16 01:50:06 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2024-11-16 01:50:06 +0100
commit9c9870b1038ca4c91f7cce556e5f16f783a309fc (patch)
tree18e6a1760521f0c7eddfadd3ccf6766078852c8f /src/Common/Cache.c
parentc86577fc0ed481f622793e66627058928ade02a9 (diff)
downloadVeraCrypt-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.c')
-rw-r--r--src/Common/Cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Common/Cache.c b/src/Common/Cache.c
index c72aa79d..60b2f04a 100644
--- a/src/Common/Cache.c
+++ b/src/Common/Cache.c
@@ -170,7 +170,7 @@ void AddPasswordToCache (Password *password, int pim, BOOL bCachePim)
burn (&tmpPass, sizeof (Password));
}
-void AddLegacyPasswordToCache (PasswordLegacy *password, int pim)
+void AddLegacyPasswordToCache (__unaligned PasswordLegacy *password, int pim)
{
Password inputPass = {0};
inputPass.Length = password->Length;