From cb7cd5b0d954b83b7f1ab58bf2174dab56c22076 Mon Sep 17 00:00:00 2001 From: qwang12 Date: Thu, 24 Jan 2008 08:27:44 +0000 Subject: [PATCH] add back the ReadKeyStroke which is removed wrongly during ICC cleanup. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4627 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/BdsDxe/MemoryTest.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/BdsDxe/MemoryTest.c b/MdeModulePkg/Universal/BdsDxe/MemoryTest.c index b9f24e6d4b..51b49abc4a 100644 --- a/MdeModulePkg/Universal/BdsDxe/MemoryTest.c +++ b/MdeModulePkg/Universal/BdsDxe/MemoryTest.c @@ -218,6 +218,7 @@ Returns: --*/ { EFI_STATUS Status; + EFI_STATUS KeyStatus; EFI_STATUS InitStatus; EFI_STATUS ReturnStatus; BOOLEAN RequireSoftECCInit; @@ -353,7 +354,8 @@ Returns: PreviousValue = TestPercent; - if (Key.ScanCode == SCAN_ESC) { + KeyStatus = gST->ConIn->ReadKeyStroke (gST->ConIn, &Key); + if (!EFI_ERROR (KeyStatus) && (Key.ScanCode == SCAN_ESC)) { if (!RequireSoftECCInit) { TmpStr = GetStringById (STRING_TOKEN (STR_PERFORM_MEM_TEST)); if (TmpStr != NULL) {