VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Boot/Windows/BootMain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Boot/Windows/BootMain.cpp')
-rw-r--r--src/Boot/Windows/BootMain.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/Boot/Windows/BootMain.cpp b/src/Boot/Windows/BootMain.cpp
index 7922c454..abab2038 100644
--- a/src/Boot/Windows/BootMain.cpp
+++ b/src/Boot/Windows/BootMain.cpp
@@ -169,16 +169,17 @@ static byte AskPassword (Password &password, int& pim)
{
case TC_BIOS_KEY_ENTER:
password.Length = pos;
- if (hidePassword)
+ Print ("\r");
+ if (!PreventNormalSystemBoot)
+ Print ("Enter password: ");
+ pos = 0;
+ while (pos < MAX_PASSWORD)
{
- while (pos < MAX_PASSWORD)
- {
- pos++;
- if (pos < MAX_PASSWORD)
- PrintChar ('*');
- else
- PrintCharAtCursor ('*');
- }
+ pos++;
+ if (pos < MAX_PASSWORD)
+ PrintChar ('*');
+ else
+ PrintCharAtCursor ('*');
}
ClearBiosKeystrokeBuffer();
@@ -240,13 +241,12 @@ static byte AskPassword (Password &password, int& pim)
switch (scanCode)
{
case TC_BIOS_KEY_ENTER:
- if (hidePassword)
+ Print ("\rPIM: ");
+ pos =0;
+ while (pos < MAX_PIM)
{
- while (pos < MAX_PIM)
- {
- PrintChar ('*');
- pos++;
- }
+ PrintChar ('*');
+ pos++;
}
ClearBiosKeystrokeBuffer();