mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
MacOSX: Add PIM value validity checks to workaround wxWidget bug that makes wxTextValidator useless when applied to a text control with password attribute (http://trac.wxwidgets.org/ticket/17185).
This commit is contained in:
6
src/Main/Forms/VolumeCreationWizard.cpp
Normal file → Executable file
6
src/Main/Forms/VolumeCreationWizard.cpp
Normal file → Executable file
@@ -792,6 +792,12 @@ namespace VeraCrypt
|
||||
|
||||
if (forward && Password && !Password->IsEmpty())
|
||||
{
|
||||
if (-1 == Pim)
|
||||
{
|
||||
// PIM invalid: don't go anywhere
|
||||
return GetCurrentStep();
|
||||
}
|
||||
|
||||
if (Password->Size() < VolumePassword::WarningSizeThreshold)
|
||||
{
|
||||
if (Pim > 0 && Pim < 485)
|
||||
|
||||
Reference in New Issue
Block a user