Add missing load for some png images

This commit is contained in:
asava 2020-04-16 14:36:51 +03:00
parent 7cce3899b8
commit 509981b16c

View File

@ -634,6 +634,7 @@ EFI_STATUS XImage::LoadXImage(EFI_FILE *BaseDir, const XStringW& IconName)
Status = egLoadFile(BaseDir, FileName.data(), &FileData, &FileDataLength);
if (EFI_ERROR(Status)) {
FileName = IconName + L".png";
Status = egLoadFile(BaseDir, FileName.data(), &FileData, &FileDataLength);
if (EFI_ERROR(Status)) {
FileName = IconName; //may be it already contain extension, for example Logo.png
Status = egLoadFile(BaseDir, FileName.data(), &FileData, &FileDataLength);