]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/UdfDxe: Correct behavior for UdfSetPosition()
authorHao Wu <hao.a.wu@intel.com>
Mon, 8 Oct 2018 06:04:48 +0000 (14:04 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 23 Oct 2018 06:24:17 +0000 (14:24 +0800)
commit6df465b21213ac7c8df78c8db261b064aa6aa56c
tree5c2a0e452f193d350e736ce7aec57fabfc5ab931
parent3b30351b75d70ea65701ac999875fbb81a89a5ca
MdeModulePkg/UdfDxe: Correct behavior for UdfSetPosition()

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1252

Calling the 'SetPosition' service of the EFI_FILE_PROTOCOL with 'Position'
equals to 0xFFFFFFFFFFFFFFFF for a file is to set the current position to
the end of the file. But the current implementation of function
UdfSetPosition() is to set it to the last byte (not EOF).

This commit will resolve this issue.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Paulo Alcantara <palcantara@suse.de>
Acked-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Universal/Disk/UdfDxe/File.c