diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-03-09 07:23:07 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-03-09 08:03:57 +0100 |
commit | 1bd3a6cc70a7efb55066abeef72c55bc79470f2c (patch) | |
tree | d4af1f1056640794f041a77c27bbdfb4013f8303 /src | |
parent | d6ce1db2a8d3d96b3c0a71fdee95a9c02c1f9101 (diff) | |
download | VeraCrypt-1bd3a6cc70a7efb55066abeef72c55bc79470f2c.tar.gz VeraCrypt-1bd3a6cc70a7efb55066abeef72c55bc79470f2c.zip |
Windows Driver: fix BSOD when mounting outer volume with hidden volume protection if RAM encryption is enabled
Diffstat (limited to 'src')
-rw-r--r-- | src/Driver/Ntvol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Driver/Ntvol.c b/src/Driver/Ntvol.c index b159b79d..afd3a964 100644 --- a/src/Driver/Ntvol.c +++ b/src/Driver/Ntvol.c @@ -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 |