From 0d304bef4b8b000cf2b47d19343687b38cc16561 Mon Sep 17 00:00:00 2001 From: Leif Lindholm Date: Fri, 21 Jun 2013 10:01:27 +0000 Subject: [PATCH] ArmPlatformPkg/Bds: Make ".EFI" files recognizable as EFI applications Currently, only ".efi" files are recognized as valid ARM UEFI applications by BDS. This patch also makes ".EFI" files recognised. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14437 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPlatformPkg/Bds/BdsHelper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2