diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-01-24 08:27:44 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-01-24 08:27:44 +0000 |
commit | cb7cd5b0d954b83b7f1ab58bf2174dab56c22076 (patch) | |
tree | b18af5a04465e656121414a65f1745335342b9b0 | |
parent | 958536baabffb0a0cc349a37679d82de73c925f9 (diff) | |
download | edk2-platforms-cb7cd5b0d954b83b7f1ab58bf2174dab56c22076.tar.xz |
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
-rw-r--r-- | MdeModulePkg/Universal/BdsDxe/MemoryTest.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) {
|