diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-05-02 14:45:22 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-05-04 13:14:05 +0200 |
commit | b261177b8f5bc3f8495406d13dc03c0328b930f9 (patch) | |
tree | 535b8a6345c63529b3bc72f42d02c27c6aed64e3 /src/Main/Forms/VolumePimWizardPage.cpp | |
parent | 0b914c8f5d690dfc1bdfbca1e1083372c5ed84d8 (diff) | |
download | VeraCrypt-b261177b8f5bc3f8495406d13dc03c0328b930f9.tar.gz VeraCrypt-b261177b8f5bc3f8495406d13dc03c0328b930f9.zip |
Windows/Linux/MacOSX: Set maximum PIM value to 2147468 in order to avoid having negative values for iterations count using the formula 15000 + (PIM x 1000). Add specific error message to XML language files.
Diffstat (limited to 'src/Main/Forms/VolumePimWizardPage.cpp')
-rw-r--r-- | src/Main/Forms/VolumePimWizardPage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Main/Forms/VolumePimWizardPage.cpp b/src/Main/Forms/VolumePimWizardPage.cpp index 0e3d4299..2d61a719 100644 --- a/src/Main/Forms/VolumePimWizardPage.cpp +++ b/src/Main/Forms/VolumePimWizardPage.cpp @@ -103,7 +103,7 @@ namespace VeraCrypt bool display = event.IsChecked (); wxTextCtrl *newTextCtrl = new wxTextCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, display ? 0 : wxTE_PASSWORD); - newTextCtrl->SetMaxLength (10); + newTextCtrl->SetMaxLength (MAX_PIM_DIGITS); newTextCtrl->SetValue (VolumePimTextCtrl->GetValue()); newTextCtrl->SetMinSize (VolumePimTextCtrl->GetSize()); |