Windows Driver: fix BSOD when mounting outer volume with hidden volume protection if RAM encryption is enabled

This commit is contained in:
Mounir IDRASSI 2019-03-09 07:23:07 +01:00
parent d6ce1db2a8
commit 1bd3a6cc70
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F
1 changed files with 1 additions and 1 deletions

View File

@ -608,7 +608,7 @@ NTSTATUS TCOpenVolume (PDEVICE_OBJECT DeviceObject,
}
#ifdef _WIN64
if (IsRamEncryptionEnabled())
if (IsRamEncryptionEnabled() && (volumeType == TC_VOLUME_TYPE_NORMAL || !mount->bProtectHiddenVolume))
VcProtectKeys (Extension->cryptoInfo, VcGetEncryptionID (Extension->cryptoInfo));
#endif