mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2024-09-09 11:01:31 +02:00
Linux/MacOSX: add missing check for PIM max value on volume creation wizard
This commit is contained in:
parent
77d070fe73
commit
69c8c9d6c6
1 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,8 @@ namespace VeraCrypt
|
|||
if (pimStr.IsEmpty())
|
||||
return 0;
|
||||
if (((size_t) wxNOT_FOUND == pimStr.find_first_not_of (wxT("0123456789")))
|
||||
&& pimStr.ToLong (&pim))
|
||||
&& pimStr.ToLong (&pim)
|
||||
&& pim <= MAX_PIM_VALUE)
|
||||
return (int) pim;
|
||||
else
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue