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:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user