OcAppleSecureBootLib: Fix img4 lookup for SB

This commit is contained in:
vit9696 2020-08-23 16:40:11 +03:00
parent 55b93a9f5e
commit d43b086452

View File

@ -601,6 +601,12 @@ InternalGetImg4ByPath (
return EFI_NO_MEDIA;
}
OcFileDevicePathFullName (
Path,
(FILEPATH_DEVICE_PATH *)DevicePath,
ImagePathSize
);
Result = mSbHardwareModel[0] != '\0';
if (Result) {
ManifestSuffix = &Path[(ImagePathSize / sizeof (*Path)) - 1];