Do the following fix up in SetupBrowser driver:
1) Check whether ConfigAccess is NULL before use it. 2) Don't do call back for UI_ACTION_REFRESH_FORMSET action. 3) Release resource before leave SetupBrowser() function. 4) Use the unified check method (HiiHandle, FormsetGuid and FormId) to check FORM is open or close. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10565 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -778,8 +778,9 @@ ProcessOptions (
|
||||
//
|
||||
*StringPtr = 0;
|
||||
Status = PasswordCallback (Selection, MenuOption, StringPtr);
|
||||
if (Status == EFI_NOT_AVAILABLE_YET) {
|
||||
if (Status == EFI_NOT_AVAILABLE_YET || Status == EFI_UNSUPPORTED) {
|
||||
//
|
||||
// Callback is not supported, or
|
||||
// Callback request to terminate password input
|
||||
//
|
||||
FreePool (StringPtr);
|
||||
|
Reference in New Issue
Block a user