From 380ca35c6d34437380de252058bb68817c925810 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 24 Aug 2024 18:02:16 +0200 Subject: Windows: Fix regression causing crash when a wrong password is used when changing password of volumes --- src/ExpandVolume/ExpandVolume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ExpandVolume') 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")); } -- cgit v1.2.3