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