VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Boot
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-11-25 00:29:40 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-11-26 00:44:46 (GMT)
commitec7d96fcb733021c214b414a1ba2841039733dd2 (patch)
treeb75146b6786e2e20ade952f52484c86638e645c6 /src/Boot
parentc53fd7ef0c2283003524722210b8599e9f3b4d18 (diff)
downloadVeraCrypt-ec7d96fcb733021c214b414a1ba2841039733dd2.zip
VeraCrypt-ec7d96fcb733021c214b414a1ba2841039733dd2.tar.gz
Windows Bootloader: Avoid displaying empty new line between password and PIM after filling password field with dummy '*'.
Diffstat (limited to 'src/Boot')
-rw-r--r--src/Boot/Windows/BootMain.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Boot/Windows/BootMain.cpp b/src/Boot/Windows/BootMain.cpp
index f66fd36..2cfc294 100644
--- a/src/Boot/Windows/BootMain.cpp
+++ b/src/Boot/Windows/BootMain.cpp
@@ -173,8 +173,11 @@ static byte AskPassword (Password &password, int& pim)
{
while (pos < MAX_PASSWORD)
{
- PrintChar ('*');
pos++;
+ if (pos < MAX_PASSWORD)
+ PrintChar ('*');
+ else
+ PrintCharAtCursor ('*');
}
}