Refine all R9 call back function to return EFI_UNSUPPORTED for all unsupported call back type.

Signed-off-by:  ydong10
Reviewed-by: lgao4


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11680 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
ydong10 2011-05-20 01:28:17 +00:00
parent 3c063fedc4
commit d664f8a25c
1 changed files with 115 additions and 116 deletions

View File

@ -3,7 +3,7 @@
by HII Thunk Modules. These Config access Protocols are used to thunk UEFI Config
Access Callback to Framework HII Callback and EFI Variable Set/Get operations.
Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2008 - 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@ -1107,13 +1107,7 @@ ThunkCallback (
EFI_INPUT_KEY Key;
BOOLEAN NvMapAllocated;
if ((Action == EFI_BROWSER_ACTION_FORM_OPEN) || (Action == EFI_BROWSER_ACTION_FORM_CLOSE)) {
//
// Ignore UEFI OPEN/CLOSE Action for FrameworkCallback
//
return EFI_SUCCESS;
}
if (Action == EFI_BROWSER_ACTION_CHANGING) {
ASSERT (This != NULL);
ASSERT (Value != NULL);
ASSERT (ActionRequest != NULL);
@ -1227,7 +1221,6 @@ ThunkCallback (
}
}
//
// Clean up.
//
@ -1236,3 +1229,9 @@ ThunkCallback (
return Status;
}
//
// All other action return unsupported.
//
return EFI_UNSUPPORTED;
}