VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Volumes.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-03-02 00:14:25 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-03-02 00:23:58 +0100
commit8e6707cc22846e48c62e4730980cfe17595f8c2c (patch)
treea666986f2933150b78c3b18fadf3c8251a30a25f /src/Common/Volumes.c
parentf09f8e3a317ccfd3eaeb21a0c83b04f95dbbecfb (diff)
downloadVeraCrypt-8e6707cc22846e48c62e4730980cfe17595f8c2c.tar.gz
VeraCrypt-8e6707cc22846e48c62e4730980cfe17595f8c2c.zip
Windows: if TrueCrypt volume created with a version prior to 6.0, display this version in the error message to help users understand why it is not working.
Diffstat (limited to 'src/Common/Volumes.c')
-rw-r--r--src/Common/Volumes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Common/Volumes.c b/src/Common/Volumes.c
index 4acb9296..73598c64 100644
--- a/src/Common/Volumes.c
+++ b/src/Common/Volumes.c
@@ -425,7 +425,7 @@ KeyReady: ;
{
if (cryptoInfo->RequiredProgramVersion < 0x600 || cryptoInfo->RequiredProgramVersion > 0x71a)
{
- status = ERR_UNSUPPORTED_TRUECRYPT_FORMAT;
+ status = ERR_UNSUPPORTED_TRUECRYPT_FORMAT | (((int)cryptoInfo->RequiredProgramVersion) << 16);
goto err;
}
cryptoInfo->LegacyVolume = FALSE;