diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2024-08-24 18:02:16 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2024-08-24 18:02:16 +0200 |
commit | 380ca35c6d34437380de252058bb68817c925810 (patch) | |
tree | 263661fac35adfeaf8bb51aa3260a6f21be12b07 /src/ExpandVolume | |
parent | 25c88fe3d30c4df4aa8bf7c64b165f92886965b9 (diff) | |
download | VeraCrypt-380ca35c6d34437380de252058bb68817c925810.tar.gz VeraCrypt-380ca35c6d34437380de252058bb68817c925810.zip |
Windows: Fix regression causing crash when a wrong password is used when changing password of volumes
Diffstat (limited to 'src/ExpandVolume')
-rw-r--r-- | src/ExpandVolume/ExpandVolume.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ExpandVolume/ExpandVolume.c b/src/ExpandVolume/ExpandVolume.c index f79fd5b7..34184dda 100644 --- a/src/ExpandVolume/ExpandVolume.c +++ b/src/ExpandVolume/ExpandVolume.c @@ -692,7 +692,7 @@ static int ExpandVolume (HWND hwndDlg, wchar_t *lpszVolume, Password *pVolumePas nStatus = 0; // We can ignore this error here // if the volume master key is vulnerable, print a warning to inform the user - if (cryptoInfo->bVulnerableMasterKey) + if ((nStatus == 0) && cryptoInfo->bVulnerableMasterKey) { DebugAddProgressDlgStatus(hwndDlg, GetString ("ERR_XTS_MASTERKEY_VULNERABLE_SHORT")); } |