VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Driver
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2019-03-09 06:23:07 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-03-09 07:03:57 (GMT)
commit1bd3a6cc70a7efb55066abeef72c55bc79470f2c (patch)
treed4af1f1056640794f041a77c27bbdfb4013f8303 /src/Driver
parentd6ce1db2a8d3d96b3c0a71fdee95a9c02c1f9101 (diff)
downloadVeraCrypt-1bd3a6cc70a7efb55066abeef72c55bc79470f2c.zip
VeraCrypt-1bd3a6cc70a7efb55066abeef72c55bc79470f2c.tar.gz
Windows Driver: fix BSOD when mounting outer volume with hidden volume protection if RAM encryption is enabled
Diffstat (limited to 'src/Driver')
-rw-r--r--src/Driver/Ntvol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Driver/Ntvol.c b/src/Driver/Ntvol.c
index b159b79..afd3a96 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