Windows Bootloader: Avoid displaying empty new line between password and PIM after filling password field with dummy '*'.

This commit is contained in:
Mounir IDRASSI 2015-11-25 01:29:40 +01:00
parent c53fd7ef0c
commit ec7d96fcb7
1 changed files with 4 additions and 1 deletions

View File

@ -173,8 +173,11 @@ static byte AskPassword (Password &password, int& pim)
{
while (pos < MAX_PASSWORD)
{
PrintChar ('*');
pos++;
if (pos < MAX_PASSWORD)
PrintChar ('*');
else
PrintCharAtCursor ('*');
}
}