summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c
diff options
context:
space:
mode:
authorDandan Bi <dandan.bi@intel.com>2016-11-15 19:10:59 +0800
committerStar Zeng <star.zeng@intel.com>2016-11-25 10:50:26 +0800
commit88f0c4e29c03600f2a45a5bd14c500049d2b09dc (patch)
treedafdd9be122daac93e9ed8e755966297ea19e474 /MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c
parent339c6e905a151305cd3b74e3a713a31798769993 (diff)
downloadedk2-88f0c4e29c03600f2a45a5bd14c500049d2b09dc.zip
edk2-88f0c4e29c03600f2a45a5bd14c500049d2b09dc.tar.gz
edk2-88f0c4e29c03600f2a45a5bd14c500049d2b09dc.tar.bz2
MdeModulePkg/DisplayEngine: Popup dialogue when password is not supported
when the password is not supported, pop up a dialogue to let user know the reason. Cc: Liming Gao <liming.gao@intel.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c')
-rw-r--r--MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c b/MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c
index c61a395..95bd5f0 100644
--- a/MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c
+++ b/MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c
@@ -814,6 +814,11 @@ PasswordProcess (
//
// Password can't be set now.
//
+ if (Status == EFI_UNSUPPORTED) {
+ do {
+ CreateDialog (&Key, gEmptyString, gPasswordUnsupported, gPressEnter, gEmptyString, NULL);
+ } while (Key.UnicodeChar != CHAR_CARRIAGE_RETURN);
+ }
FreePool (StringPtr);
return EFI_SUCCESS;
}