Reviewed-by: Ruiyu Ni <ruiyu...@intel.com> Regards, Ray
>-----Original Message----- >From: Laszlo Ersek [mailto:ler...@redhat.com] >Sent: Thursday, October 27, 2016 3:05 AM >To: edk2-devel-01 <edk2-de...@ml01.01.org> >Cc: Tian, Feng <feng.t...@intel.com>; Ni, Ruiyu <ruiyu...@intel.com>; Zeng, >Star <star.z...@intel.com> >Subject: [PATCH 27/47] MdeModulePkg/Logo: rebase to ARRAY_SIZE() > >Cc: Feng Tian <feng.t...@intel.com> >Cc: Ruiyu Ni <ruiyu...@intel.com> >Cc: Star Zeng <star.z...@intel.com> >Contributed-under: TianoCore Contribution Agreement 1.0 >Signed-off-by: Laszlo Ersek <ler...@redhat.com> >--- > MdeModulePkg/Logo/Logo.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/MdeModulePkg/Logo/Logo.c b/MdeModulePkg/Logo/Logo.c >index f0792addd3a9..313dd4a7937d 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; > } > >-- >2.9.2 > _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel