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

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

View File

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