summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/CustomizedDisplayLib
diff options
context:
space:
mode:
authorEric Dong <eric.dong@intel.com>2013-12-26 04:19:37 +0000
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2013-12-26 04:19:37 +0000
commit80873def607ba8056e5aab40eaa3be07e9a5ec19 (patch)
treeca3c56dd737b1b7a6b2467adcefeb58e0586ca35 /MdeModulePkg/Library/CustomizedDisplayLib
parentb8b5ff5acd0d292bcd804e589d28677af5098573 (diff)
downloadedk2-platforms-80873def607ba8056e5aab40eaa3be07e9a5ec19.tar.xz
Keep consistent about the return value between the caller and callee.
Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15021 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Library/CustomizedDisplayLib')
-rw-r--r--MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.c b/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.c
index 92f3a43a77..5b5f37d175 100644
--- a/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.c
+++ b/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.c
@@ -543,7 +543,7 @@ CreateDialog (
/**
Confirm how to handle the changed data.
- @return Action BROWSER_ACTION_SUBMIT, BROWSER_ACTION_DISCARD or other values.
+ @return Action BROWSER_SAVE_CHANGES, BROWSER_DISCARD_CHANGES or other values.
**/
UINTN
EFIAPI
@@ -573,11 +573,11 @@ ConfirmDataChange (
);
if (Key.ScanCode == SCAN_ESC) {
- return BROWSER_ACTION_NONE;
+ return BROWSER_NO_CHANGES;
} else if ((Key.UnicodeChar | UPPER_LOWER_CASE_OFFSET) == (YesResponse | UPPER_LOWER_CASE_OFFSET)) {
- return BROWSER_ACTION_SUBMIT;
+ return BROWSER_SAVE_CHANGES;
} else {
- return BROWSER_ACTION_DISCARD;
+ return BROWSER_DISCARD_CHANGES;
}
}