diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-03-02 00:14:25 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-03-02 00:23:58 +0100 |
commit | 8e6707cc22846e48c62e4730980cfe17595f8c2c (patch) | |
tree | a666986f2933150b78c3b18fadf3c8251a30a25f /src/Common/Volumes.c | |
parent | f09f8e3a317ccfd3eaeb21a0c83b04f95dbbecfb (diff) | |
download | VeraCrypt-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.c | 2 |
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;
|