]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPkg/BdsLib: Close file after reading an Image
authorRonald Cron <Ronald.Cron@arm.com>
Tue, 6 Jan 2015 15:51:02 +0000 (15:51 +0000)
committeroliviermartin <oliviermartin@Edk2>
Tue, 6 Jan 2015 15:51:02 +0000 (15:51 +0000)
commitad7e31b505b91c9e7baf266dd8cf2ff95befbb8a
treeeb2b1b0ac7eb8720b925592b2420283c83df9eb6
parentf98f9d98089be8b5b33669cf6e09f14b819dafc4
ArmPkg/BdsLib: Close file after reading an Image

When loading an image from a file, close the file after reading from it.
Use OpenProtocol instead of HandleProtocol to retrieve the simple file
system protocol interface.

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@16586 6f19259b-4bc3-4df7-8a09-765794883524
ArmPkg/Library/BdsLib/BdsFilePath.c