1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

Windows Driver: Disable Hibernation when RAM encryption is enabled since we can't resume from Hibernation without RAM encryption keys (a chicken and egg situation)

This commit is contained in:
Mounir IDRASSI
2019-10-01 15:07:56 +02:00
parent 9b804137e0
commit 3923d11c7b

View File

@@ -660,6 +660,12 @@ static NTSTATUS MountDrive (DriveFilterExtension *Extension, Password *password,
{ {
CrashDumpEnabled = TRUE; CrashDumpEnabled = TRUE;
HibernationEnabled = TRUE; HibernationEnabled = TRUE;
#ifdef _WIN64
if (IsRamEncryptionEnabled())
{
HibernationEnabled = FALSE;
}
#endif
} }
else if (!LegacyHibernationDriverFilterActive) else if (!LegacyHibernationDriverFilterActive)
StartLegacyHibernationDriverFilter(); StartLegacyHibernationDriverFilter();