git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9979
6f19259b-4bc3-4df7-8a09-
765794883524
if (File->Type == EfiOpenLoadFile || File->Type == EfiOpenFirmwareVolume) {
if (!CompareGuid (&File->FvNameGuid, &gZeroGuid)) {
- // LoadFile and FV do not support Seek
- // You can seek on a raw FV device
- return EFI_UNSUPPORTED;
+ if ((SeekType != EfiSeekStart) && (Offset != 0)) {
+ // LoadFile and FV do not support Seek
+ // You can seek on a raw FV device
+ return EFI_UNSUPPORTED;
+ }
}
}