]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPkg/SemihostFs: Fix open file issues revealed by SCT
authorRonald Cron <ronald.cron@arm.com>
Mon, 27 Oct 2014 10:40:33 +0000 (10:40 +0000)
committeroliviermartin <oliviermartin@Edk2>
Mon, 27 Oct 2014 10:40:33 +0000 (10:40 +0000)
commitfdd12bd56985bfc6090b972ddc07418eb4f7212a
tree7240f7d6057e4167a50928b04607e3254b3ae934
parent0f0a6fe907e6233f95546599ee3fe48d91259dce
ArmPkg/SemihostFs: Fix open file issues revealed by SCT

Fix return codes in case of errors.
Fix translation from EFI open mode to semi-hosting open mode to avoid the
truncate to zero length of an already existing file opened in read/write
or read/write/create mode.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16241 6f19259b-4bc3-4df7-8a09-765794883524
ArmPkg/Filesystem/SemihostFs/Arm/SemihostFs.c
ArmPkg/Filesystem/SemihostFs/Arm/SemihostFs.h