From 63588e6106aa37452e386eb8504875cdb7da6139 Mon Sep 17 00:00:00 2001 From: ydong10 Date: Fri, 6 Jul 2012 00:59:08 +0000 Subject: [PATCH] Update the logic to force user to reset when change configuration which need to reset. Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13507 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Library/GenericBdsLib/BdsMisc.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c index a432fb24a4..d40ebc47ab 100644 --- a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c +++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c @@ -1124,24 +1124,19 @@ SetupResetReminder ( ASSERT (StringBuffer1 != NULL); StringBuffer2 = AllocateZeroPool (MAX_STRING_LEN * sizeof (CHAR16)); ASSERT (StringBuffer2 != NULL); - StrCpy (StringBuffer1, L"Configuration changed. Reset to apply it Now ? "); - StrCpy (StringBuffer2, L"Enter (YES) / Esc (NO)"); + StrCpy (StringBuffer1, L"Configuration changed. Reset to apply it Now"); + StrCpy (StringBuffer2, L"Press ENTER to reset"); // // Popup a menu to notice user // do { CreatePopUp (EFI_LIGHTGRAY | EFI_BACKGROUND_BLUE, &Key, StringBuffer1, StringBuffer2, NULL); - } while ((Key.ScanCode != SCAN_ESC) && (Key.UnicodeChar != CHAR_CARRIAGE_RETURN)); + } while (Key.UnicodeChar != CHAR_CARRIAGE_RETURN); FreePool (StringBuffer1); FreePool (StringBuffer2); - // - // If the user hits the YES Response key, reset - // - if (Key.UnicodeChar == CHAR_CARRIAGE_RETURN) { - gRT->ResetSystem (EfiResetCold, EFI_SUCCESS, 0, NULL); - } - gST->ConOut->ClearScreen (gST->ConOut); + + gRT->ResetSystem (EfiResetCold, EFI_SUCCESS, 0, NULL); } } } -- 2.39.2