From b7891584a58d5e5e26f35c0944cae5f03efd880b Mon Sep 17 00:00:00 2001 From: ydong10 Date: Wed, 7 Dec 2011 05:49:01 +0000 Subject: Enable EFI_BROWSER_ACTION_CHANGED callback type for browser. Signed-off-by: ydong10 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12826 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'MdeModulePkg') diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c b/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c index a6be2bbcee..ba39f30253 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c @@ -1534,7 +1534,6 @@ SetupBrowser ( if ((ConfigAccess != NULL) && ((Statement->QuestionFlags & EFI_IFR_FLAG_CALLBACK) == EFI_IFR_FLAG_CALLBACK) && (Statement->Operand != EFI_IFR_PASSWORD_OP)) { - Status = ProcessCallBackFunction(Selection, Statement, EFI_BROWSER_ACTION_CHANGING, FALSE); if (Statement->Operand == EFI_IFR_REF_OP && Selection->Action != UI_ACTION_EXIT) { // @@ -1555,6 +1554,10 @@ SetupBrowser ( Selection->QuestionId = 0; } } + + if ((Status == EFI_SUCCESS) && (Statement->Operand != EFI_IFR_REF_OP)) { + ProcessCallBackFunction(Selection, Statement, EFI_BROWSER_ACTION_CHANGED, FALSE); + } } // -- cgit v1.2.3