From 9c9870b1038ca4c91f7cce556e5f16f783a309fc Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 16 Nov 2024 01:50:06 +0100 Subject: Windows: Avoid modifying BootArguments structure and use __unaligned keyword to inform compiler that pointer is unaligned. This avoids issues with existing bootloaders --- src/Common/Cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Common/Cache.h') 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); -- cgit v1.2.3