From a7a8d57bcaaaf4e5982d2e51cd3086d34f45f780 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Mon, 8 Jun 2015 01:14:57 +0200 Subject: Windows: rename PIN to PIM to avoid confusion. Better error messages. --- src/Boot/Windows/BootMain.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Boot') 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 @@ -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); -- cgit v1.2.3