mirror of https://github.com/acidanthera/audk.git
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 <leif.lindholm@linaro.org> Signed-off-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14437 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
918c653e1f
commit
0d304bef4b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue