From 588cfc63d235b0b4c7ba8ebae2a7e3787e62b1e7 Mon Sep 17 00:00:00 2001 From: Ming Tan Date: Tue, 2 Jan 2024 10:22:56 +0800 Subject: [PATCH] MdeModulePkg/SetupBrowserDxe: EFI_BROWSER_ACTION_REQUEST_QUESTION_APPLY REF: UEFI_Spec_2_10_Aug29.pdf page 1695. In 35.5.4 EFI_HII_CONFIG_ACCESS_PROTOCOL.CallBack(): If the callback function returns with the ActionRequest set to _QUESTION_APPLY, then the Forms Browser will write the current modified question value on the selected form to storage. Update the SetupBrowserDxe, if callback function return EFI_BROWSER_ACTION_REQUEST_QUESTION_APPLY, then call SetQuestionValue with GetSetValueWithHiiDriver to apply the change immediately. Signed-off-by: Ming Tan Cc: Liming Gao Cc: Dandan Bi Reviewed-by: Dandan Bi Reviewed-by: Liming Gao --- MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c b/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c index babef21497..de7e79e8ab 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c @@ -2145,6 +2145,15 @@ ProcessCallBackFunction ( gCallbackReconnect = TRUE; break; + case EFI_BROWSER_ACTION_REQUEST_QUESTION_APPLY: + Status = SetQuestionValue ( + gCurrentSelection->FormSet, + gCurrentSelection->Form, + Statement, + GetSetValueWithHiiDriver + ); + break; + default: break; }