From 3923d11c7b8ebcb26a3e097b1bc447bee722f34d Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Tue, 1 Oct 2019 15:07:56 +0200 Subject: 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) --- src/Driver/DriveFilter.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Driver/DriveFilter.c b/src/Driver/DriveFilter.c index 9700226f..3813992d 100644 --- a/src/Driver/DriveFilter.c +++ b/src/Driver/DriveFilter.c @@ -660,6 +660,12 @@ static NTSTATUS MountDrive (DriveFilterExtension *Extension, Password *password, { CrashDumpEnabled = TRUE; HibernationEnabled = TRUE; +#ifdef _WIN64 + if (IsRamEncryptionEnabled()) + { + HibernationEnabled = FALSE; + } +#endif } else if (!LegacyHibernationDriverFilterActive) StartLegacyHibernationDriverFilter(); -- cgit v1.2.3