MemoryTest: replace test result with boot menu prompt
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
This commit is contained in:
@ -338,27 +338,11 @@ BdsMemoryTest (
|
|||||||
|
|
||||||
Done:
|
Done:
|
||||||
if (!FeaturePcdGet(PcdBootlogoOnlyEnable)) {
|
if (!FeaturePcdGet(PcdBootlogoOnlyEnable)) {
|
||||||
UnicodeValueToStringS (StrTotalMemory, StrTotalMemorySize, COMMA_TYPE, TotalMemorySize, 0);
|
|
||||||
if (StrTotalMemory[0] == L',') {
|
|
||||||
StrTotalMemory++;
|
|
||||||
StrTotalMemorySize -= sizeof (CHAR16);
|
|
||||||
}
|
|
||||||
|
|
||||||
TmpStr = GetStringById (STRING_TOKEN (STR_MEM_TEST_COMPLETED));
|
|
||||||
if (TmpStr != NULL) {
|
|
||||||
StrnCatS (
|
|
||||||
StrTotalMemory,
|
|
||||||
StrTotalMemorySize / sizeof (CHAR16),
|
|
||||||
TmpStr,
|
|
||||||
StrTotalMemorySize / sizeof (CHAR16) - StrLen (StrTotalMemory) - 1
|
|
||||||
);
|
|
||||||
FreePool (TmpStr);
|
|
||||||
}
|
|
||||||
|
|
||||||
PlatformBdsShowProgress (
|
PlatformBdsShowProgress (
|
||||||
Foreground,
|
Foreground,
|
||||||
Background,
|
Background,
|
||||||
StrTotalMemory,
|
L"Press ESC for Boot Options/Settings",
|
||||||
Color,
|
Color,
|
||||||
100,
|
100,
|
||||||
(UINTN) PreviousValue
|
(UINTN) PreviousValue
|
||||||
|
Reference in New Issue
Block a user