From 8e6707cc22846e48c62e4730980cfe17595f8c2c Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Mon, 2 Mar 2015 00:14:25 +0100 Subject: 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. --- src/Common/Volumes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Common/Volumes.c') 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; -- cgit v1.2.3