Fix issue with making a seek to zero on an FV file legal.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9979 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
andrewfish 2010-02-11 03:21:18 +00:00
parent ea02100237
commit 127fd07c83
1 changed files with 5 additions and 3 deletions

View File

@ -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;
}
}
}