add back the ReadKeyStroke which is removed wrongly during ICC cleanup.
authorqwang12 <qwang12@de2fecce-e211-0410-80a6-f3fac2684e05>
Thu, 24 Jan 2008 08:27:44 +0000 (08:27 +0000)
committerqwang12 <qwang12@de2fecce-e211-0410-80a6-f3fac2684e05>
Thu, 24 Jan 2008 08:27:44 +0000 (08:27 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@4627 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/MdeModulePkg/Universal/BdsDxe/MemoryTest.c

index b9f24e6..51b49ab 100644 (file)
@@ -218,6 +218,7 @@ Returns:
 --*/\r
 {\r
   EFI_STATUS                        Status;\r
+  EFI_STATUS                        KeyStatus;\r
   EFI_STATUS                        InitStatus;\r
   EFI_STATUS                        ReturnStatus;\r
   BOOLEAN                           RequireSoftECCInit;\r
@@ -353,7 +354,8 @@ Returns:
 \r
     PreviousValue = TestPercent;\r
 \r
-    if (Key.ScanCode == SCAN_ESC) {\r
+    KeyStatus     = gST->ConIn->ReadKeyStroke (gST->ConIn, &Key);\r
+    if (!EFI_ERROR (KeyStatus) && (Key.ScanCode == SCAN_ESC)) {\r
       if (!RequireSoftECCInit) {\r
         TmpStr = GetStringById (STRING_TOKEN (STR_PERFORM_MEM_TEST));\r
         if (TmpStr != NULL) {\r