diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2023-05-21 17:27:33 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2023-05-21 17:27:33 +0200 |
commit | eb61010ce2f1e9ed16f136500c6e76d2839bfd08 (patch) | |
tree | 1667aeed107bbc09d114355ea56405052cd621c4 /src/Main | |
parent | b05b18928f4291b7c24cbe0046e4d5b3f44705d0 (diff) | |
download | VeraCrypt-eb61010ce2f1e9ed16f136500c6e76d2839bfd08.tar.gz VeraCrypt-eb61010ce2f1e9ed16f136500c6e76d2839bfd08.zip |
Linux/macOS: Better handling of wrong PIM value in text mode (enhances PR#1026)
Diffstat (limited to 'src/Main')
-rw-r--r-- | src/Main/TextUserInterface.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Main/TextUserInterface.cpp b/src/Main/TextUserInterface.cpp index e972163b..21d13a6f 100644 --- a/src/Main/TextUserInterface.cpp +++ b/src/Main/TextUserInterface.cpp @@ -1294,7 +1294,7 @@ namespace VeraCrypt options.Password = AskPassword (StringFormatter (_("Enter password for {0}"), wstring (*options.Path))); } - if (!options.TrueCryptMode /*&& (options.Pim < 0) re-ask in case of wrong value entered*/) + if (!options.TrueCryptMode && (options.Pim < 0)) { options.Pim = AskPim (StringFormatter (_("Enter PIM for {0}"), wstring (*options.Path))); } @@ -1346,12 +1346,14 @@ namespace VeraCrypt options.UseBackupHeaders = false; ShowInfo (e); options.Password.reset(); + options.Pim = -1; } } else { ShowInfo (e); options.Password.reset(); + options.Pim = -1; } ShowString (L"\n"); @@ -1360,6 +1362,7 @@ namespace VeraCrypt { ShowInfo (e); options.Password.reset(); + options.Pim = -1; } } |