1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-12 03:18:26 -06:00

Windows: rename PIN to PIM to avoid confusion. Better error messages.

This commit is contained in:
Mounir IDRASSI
2015-06-08 01:14:57 +02:00
parent 00cd134720
commit a7a8d57bca
17 changed files with 140 additions and 140 deletions

View File

@@ -215,7 +215,7 @@ static byte AskPassword (Password &password, int& pin)
}
pos = 0;
Print ("PIN: ");
Print ("PIM: ");
while (true)
{
@@ -232,7 +232,7 @@ static byte AskPassword (Password &password, int& pin)
case TC_BIOS_KEY_BACKSPACE:
if (pos > 0)
{
if (pos < MAX_PIN)
if (pos < MAX_PIM)
PrintBackspace();
else
PrintCharAtCursor (' ');
@@ -253,7 +253,7 @@ static byte AskPassword (Password &password, int& pin)
}
}
if (!IsDigit (asciiCode) || pos == MAX_PIN)
if (!IsDigit (asciiCode) || pos == MAX_PIM)
{
Beep();
continue;
@@ -262,7 +262,7 @@ static byte AskPassword (Password &password, int& pin)
pin = 10*pin + (asciiCode - '0');
pos++;
if (pos < MAX_PIN)
if (pos < MAX_PIM)
PrintChar (asciiCode);
else
PrintCharAtCursor (asciiCode);