From ec7d96fcb733021c214b414a1ba2841039733dd2 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Wed, 25 Nov 2015 01:29:40 +0100 Subject: Windows Bootloader: Avoid displaying empty new line between password and PIM after filling password field with dummy '*'. --- src/Boot/Windows/BootMain.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Boot/Windows') 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 ('*'); } } -- cgit v1.2.3