diff --git a/MdeModulePkg/Logo/Logo.c b/MdeModulePkg/Logo/Logo.c index f0792addd3..313dd4a793 100644 --- a/MdeModulePkg/Logo/Logo.c +++ b/MdeModulePkg/Logo/Logo.c @@ -69,7 +69,7 @@ GetImage ( } Current = *Instance; - if (Current >= sizeof (mLogos) / sizeof (mLogos[0])) { + if (Current >= ARRAY_SIZE (mLogos)) { return EFI_NOT_FOUND; }