diff options
author | Leif Lindholm <leif.lindholm@linaro.org> | 2013-06-21 10:01:27 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2013-06-21 10:01:27 +0000 |
commit | 0d304bef4b8b000cf2b47d19343687b38cc16561 (patch) | |
tree | 0fd81045276b8f8d880e96645559d9232513f1cb /ArmPlatformPkg/Bds | |
parent | 918c653e1f3fdcb46acadbb65a431391fcd388d2 (diff) | |
download | edk2-0d304bef4b8b000cf2b47d19343687b38cc16561.tar.gz edk2-0d304bef4b8b000cf2b47d19343687b38cc16561.tar.bz2 edk2-0d304bef4b8b000cf2b47d19343687b38cc16561.zip |
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
Diffstat (limited to 'ArmPlatformPkg/Bds')
-rw-r--r-- | ArmPlatformPkg/Bds/BdsHelper.c | 3 |
1 files changed, 2 insertions, 1 deletions
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
|