mirror of https://github.com/acidanthera/audk.git
EdkCompatibilityPkg/FrameworkHiiOnUefiHiiThunk: rebase to ARRAY_SIZE()
Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
bd4b5962d9
commit
abcdd98be3
|
@ -51,7 +51,7 @@ QuestionOpFwToUefi (
|
|||
{
|
||||
UINTN Index;
|
||||
|
||||
for (Index = 0; Index < sizeof (QuestionOpcodeMap) / sizeof (QuestionOpcodeMap[0]); Index++) {
|
||||
for (Index = 0; Index < ARRAY_SIZE (QuestionOpcodeMap); Index++) {
|
||||
if (FwOp == QuestionOpcodeMap[Index].FrameworkIfrOp) {
|
||||
*UefiOp = QuestionOpcodeMap[Index].UefiIfrOp;
|
||||
return EFI_SUCCESS;
|
||||
|
|
Loading…
Reference in New Issue