X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=ArmPlatformPkg%2FBds%2FBdsHelper.c;h=5e1b9935cb30a17d23fb254c4c9d0ea67701fe37;hp=9747b3fbd3d837f7968d27357b32e3c2472959f0;hb=0d304bef4b8b000cf2b47d19343687b38cc16561;hpb=918c653e1f3fdcb46acadbb65a431391fcd388d2 diff --git a/ArmPlatformPkg/Bds/BdsHelper.c b/ArmPlatformPkg/Bds/BdsHelper.c index 9747b3fbd3..5e1b9935cb 100644 --- a/ArmPlatformPkg/Bds/BdsHelper.c +++ b/ArmPlatformPkg/Bds/BdsHelper.c @@ -205,7 +205,8 @@ HasFilePathEfiExtension ( IN CHAR16* FilePath ) { - return (StrCmp (FilePath + (StrSize(FilePath)/sizeof(CHAR16)) - 5, L".efi") == 0); + return (StrCmp (FilePath + (StrSize (FilePath) / sizeof (CHAR16)) - 5, L".EFI") == 0) || + (StrCmp (FilePath + (StrSize (FilePath) / sizeof (CHAR16)) - 5, L".efi") == 0); } // Return the last non end-type Device Path Node from a Device Path