diff options
Diffstat (limited to 'EmbeddedPkg')
-rw-r--r-- | EmbeddedPkg/Library/EfiFileLib/EfiFileLib.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/EmbeddedPkg/Library/EfiFileLib/EfiFileLib.c b/EmbeddedPkg/Library/EfiFileLib/EfiFileLib.c index 2d53368c9f..a68fbf0998 100644 --- a/EmbeddedPkg/Library/EfiFileLib/EfiFileLib.c +++ b/EmbeddedPkg/Library/EfiFileLib/EfiFileLib.c @@ -1169,9 +1169,11 @@ EfiSeek ( 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; + } } } |