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.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Common/Cache.c') 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; -- cgit v1.2.3