mirror_edk2/ShellPkg/Library
Laszlo Ersek 9becf2f075 ShellPkg/UefiShellLib: rebase ShellOpenFileByDevicePath() to UefiLib API
Replace the "old shell method" implementation in
ShellOpenFileByDevicePath() with EfiOpenFileByDevicePath() from UefiLib,
correcting the following issues:

- code duplication between this module and other modules,
- local variable name "EfiSimpleFileSystemProtocol" starting with "Efi"
  prefix,
- bogus "FileHandle = NULL" assignments,
- leaking "Handle1" when the device path type/subtype check or the
  realignment-motivated AllocateCopyPool() fails in the loop.

Cc: Jaben Carsey <jaben.carsey@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1008
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
2018-08-16 20:02:51 +02:00
..
UefiHandleParsingLib ShellPkg: Removing ipf which is no longer supported from edk2. 2018-06-29 16:19:49 +08:00
UefiShellAcpiViewCommandLib ShellPkg/acpi: Fix XCODE5 X64 build failure 2018-08-07 15:24:56 +08:00
UefiShellBcfgCommandLib ShellPkg: Clean up source files 2018-06-28 11:19:51 +08:00
UefiShellCEntryLib ShellPkg: Removing ipf which is no longer supported from edk2. 2018-06-29 16:19:49 +08:00
UefiShellCommandLib ShellPkg: Removing ipf which is no longer supported from edk2. 2018-06-29 16:19:49 +08:00
UefiShellDebug1CommandsLib ShellPkg: Clean up source files 2018-06-28 11:19:51 +08:00
UefiShellDriver1CommandsLib ShellPkg: Clean up source files 2018-06-28 11:19:51 +08:00
UefiShellInstall1CommandsLib ShellPkg: Clean up source files 2018-06-28 11:19:51 +08:00
UefiShellLevel1CommandsLib ShellPkg: Clean up source files 2018-06-28 11:19:51 +08:00
UefiShellLevel2CommandsLib ShellPkg: Removing ipf which is no longer supported from edk2. 2018-06-29 16:19:49 +08:00
UefiShellLevel3CommandsLib ShellPkg: Clean up source files 2018-06-28 11:19:51 +08:00
UefiShellLib ShellPkg/UefiShellLib: rebase ShellOpenFileByDevicePath() to UefiLib API 2018-08-16 20:02:51 +02:00
UefiShellNetwork1CommandsLib ShellPkg: Clean up source files 2018-06-28 11:19:51 +08:00
UefiShellNetwork2CommandsLib ShellPkg: Clean up source files 2018-06-28 11:19:51 +08:00