mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
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.
This commit is contained in:
@@ -3978,7 +3978,7 @@ void handleError (HWND hwndDlg, int code)
|
||||
|
||||
if (Silent) return;
|
||||
|
||||
switch (code)
|
||||
switch (code & 0x0000FFFF)
|
||||
{
|
||||
case ERR_OS_ERROR:
|
||||
handleWin32Error (hwndDlg);
|
||||
@@ -4072,7 +4072,8 @@ void handleError (HWND hwndDlg, int code)
|
||||
break;
|
||||
|
||||
case ERR_UNSUPPORTED_TRUECRYPT_FORMAT:
|
||||
MessageBoxW (hwndDlg, GetString ("UNSUPPORTED_TRUECRYPT_FORMAT"), lpszTitle, ICON_HAND);
|
||||
StringCbPrintfW (szTmp, sizeof(szTmp), GetString ("UNSUPPORTED_TRUECRYPT_FORMAT"), (code >> 24), (code >> 16) & 0x000000FF);
|
||||
MessageBoxW (hwndDlg, szTmp, lpszTitle, ICON_HAND);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user