diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-06-08 01:14:57 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-06-08 01:16:34 +0200 |
commit | a7a8d57bcaaaf4e5982d2e51cd3086d34f45f780 (patch) | |
tree | 457161e7fefc61ee391ab2bd99f6f728b3b4a688 /src/Boot/Windows | |
parent | 00cd134720f754f008fdc541afdd9ab70f6d11da (diff) | |
download | VeraCrypt-a7a8d57bcaaaf4e5982d2e51cd3086d34f45f780.tar.gz VeraCrypt-a7a8d57bcaaaf4e5982d2e51cd3086d34f45f780.zip |
Windows: rename PIN to PIM to avoid confusion. Better error messages.
Diffstat (limited to 'src/Boot/Windows')
-rw-r--r-- | src/Boot/Windows/BootMain.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Boot/Windows/BootMain.cpp b/src/Boot/Windows/BootMain.cpp index c5567f6b..a1193416 100644 --- a/src/Boot/Windows/BootMain.cpp +++ b/src/Boot/Windows/BootMain.cpp @@ -214,9 +214,9 @@ static byte AskPassword (Password &password, int& pin) PrintCharAtCursor (asciiCode);
}
pos = 0;
- Print ("PIN: ");
+ Print ("PIM: ");
while (true)
{
asciiCode = GetKeyboardChar (&scanCode);
@@ -231,9 +231,9 @@ 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 (' ');
@@ -252,18 +252,18 @@ static byte AskPassword (Password &password, int& pin) return scanCode;
}
}
- if (!IsDigit (asciiCode) || pos == MAX_PIN)
+ if (!IsDigit (asciiCode) || pos == MAX_PIM)
{
Beep();
continue;
}
pin = 10*pin + (asciiCode - '0');
pos++;
- if (pos < MAX_PIN)
+ if (pos < MAX_PIM)
PrintChar (asciiCode);
else
PrintCharAtCursor (asciiCode);
}
|