summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MdeModulePkg/Logo/Logo.c2
1 files changed, 1 insertions, 1 deletions
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;
}