Update FormBrowser to conform to UEFI spec Table 197. Callback Behavior for Cross-Reference:

"CHANGING: If EFI_UNSUPPORTED or EFI_SUCCESS, cross-reference is taken. Any other error the cross-reference will not be taken."

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9361 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
xdu2 2009-10-26 03:04:08 +00:00
parent d02847d3c0
commit 3dde743f62
1 changed files with 11 additions and 0 deletions

View File

@ -982,6 +982,17 @@ SetupBrowser (
default:
break;
}
} else if (Status != EFI_UNSUPPORTED) {
//
// Callback return error status other than EFI_UNSUPPORTED
//
if (Statement->Operand == EFI_IFR_REF_OP) {
//
// Cross reference will not be taken
//
Selection->FormId = Selection->Form->FormId;
Selection->QuestionId = 0;
}
}
}