diff --git a/base/setup/usetup/format.c b/base/setup/usetup/format.c index db8c14dcca..691b3600d1 100644 --- a/base/setup/usetup/format.c +++ b/base/setup/usetup/format.c @@ -33,6 +33,24 @@ static PPROGRESSBAR FormatProgressBar = NULL; /* FUNCTIONS ****************************************************************/ +static +VOID +CONSOLE_ClearTextXY(IN SHORT x, + IN SHORT y, + IN SHORT Length) +{ + COORD coPos; + DWORD Written; + + coPos.X = x; + coPos.Y = y; + + FillConsoleOutputCharacterA(StdOutput, + ' ', + Length, + coPos, + &Written); +} static BOOLEAN @@ -96,6 +114,8 @@ FormatPartition( if (!FileSystem || !FileSystem->FormatFunc) return STATUS_NOT_SUPPORTED; + CONSOLE_ClearTextXY(6, 10, 74); + FormatProgressBar = CreateProgressBar(6, yScreen - 14, xScreen - 7,