]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/Bds/BdsHelper.c
ArmPlatformPkg/Bds: Make ".EFI" files recognizable as EFI applications
[mirror_edk2.git] / ArmPlatformPkg / Bds / BdsHelper.c
index 9747b3fbd3d837f7968d27357b32e3c2472959f0..5e1b9935cb30a17d23fb254c4c9d0ea67701fe37 100644 (file)
@@ -205,7 +205,8 @@ HasFilePathEfiExtension (
   IN CHAR16* FilePath\r
   )\r
 {\r
-  return (StrCmp (FilePath + (StrSize(FilePath)/sizeof(CHAR16)) - 5, L".efi") == 0);\r
+  return (StrCmp (FilePath + (StrSize (FilePath) / sizeof (CHAR16)) - 5, L".EFI") == 0) ||\r
+         (StrCmp (FilePath + (StrSize (FilePath) / sizeof (CHAR16)) - 5, L".efi") == 0);\r
 }\r
 \r
 // Return the last non end-type Device Path Node from a Device Path\r