summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDandan Bi <dandan.bi@intel.com>2016-09-08 15:04:51 +0800
committerStar Zeng <star.zeng@intel.com>2016-09-12 18:26:11 +0800
commit7d467158e095a8f231f1a65c9f7ca3627debf763 (patch)
tree0ddb98ff8239f0f2a8310ba2058e8d7d250911c1
parente9fec7326ad2f27fe368c830da055d1044b18e95 (diff)
downloadedk2-7d467158e095a8f231f1a65c9f7ca3627debf763.tar.gz
edk2-7d467158e095a8f231f1a65c9f7ca3627debf763.tar.bz2
edk2-7d467158e095a8f231f1a65c9f7ca3627debf763.zip
MdeModulePkg/UiApp: Fix incorrect question id
For a question, its question id can not be zero. This patch is to fix the issue that using zero as question id. Cc: Liming Gao <liming.gao@intel.com> Cc: Eric Dong <eric.dong@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
-rw-r--r--MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c b/MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c
index 93f6e4e88f..1505ef9319 100644
--- a/MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c
+++ b/MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c
@@ -43,6 +43,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#define FRONT_PAGE_KEY_CONTINUE 0x1000
#define FRONT_PAGE_KEY_RESET 0x1001
#define FRONT_PAGE_KEY_LANGUAGE 0x1002
+#define FRONT_PAGE_KEY_DRIVER 0x2000
typedef struct {
EFI_STRING_ID PromptId;
@@ -656,7 +657,7 @@ UiListThirdPartyDrivers (
gHiiDriverList[Index].PromptId,
gHiiDriverList[Index].HelpId,
0,
- 0,
+ (EFI_QUESTION_ID) (Index + FRONT_PAGE_KEY_DRIVER),
0,
&gHiiDriverList[Index].FormSetGuid,
gHiiDriverList[Index].DevicePathId