From 7d467158e095a8f231f1a65c9f7ca3627debf763 Mon Sep 17 00:00:00 2001 From: Dandan Bi Date: Thu, 8 Sep 2016 15:04:51 +0800 Subject: [PATCH] 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 Cc: Eric Dong Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi Reviewed-by: Eric Dong Reviewed-by: Liming Gao --- MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2