From b8a2e808c693a59e236b98c3274019e5a25b3089 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Mon, 25 Jan 2016 01:35:17 +0100 Subject: 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). --- src/Main/Forms/VolumeCreationWizard.cpp | 6 ++++++ 1 file changed, 6 insertions(+) mode change 100644 => 100755 src/Main/Forms/VolumeCreationWizard.cpp (limited to 'src/Main/Forms/VolumeCreationWizard.cpp') diff --git a/src/Main/Forms/VolumeCreationWizard.cpp b/src/Main/Forms/VolumeCreationWizard.cpp old mode 100644 new mode 100755 index d67f0fe7..a250625b --- a/src/Main/Forms/VolumeCreationWizard.cpp +++ b/src/Main/Forms/VolumeCreationWizard.cpp @@ -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) -- cgit v1.2.3