diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-11-25 01:29:40 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-11-26 01:44:46 +0100 |
commit | ec7d96fcb733021c214b414a1ba2841039733dd2 (patch) | |
tree | b75146b6786e2e20ade952f52484c86638e645c6 /src/Boot/Windows/BootMain.cpp | |
parent | c53fd7ef0c2283003524722210b8599e9f3b4d18 (diff) | |
download | VeraCrypt-ec7d96fcb733021c214b414a1ba2841039733dd2.tar.gz VeraCrypt-ec7d96fcb733021c214b414a1ba2841039733dd2.zip |
Windows Bootloader: Avoid displaying empty new line between password and PIM after filling password field with dummy '*'.
Diffstat (limited to 'src/Boot/Windows/BootMain.cpp')
-rw-r--r-- | src/Boot/Windows/BootMain.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Boot/Windows/BootMain.cpp b/src/Boot/Windows/BootMain.cpp index f66fd36b..2cfc2945 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 ('*');
}
}
|