audk/ShellPkg/Library
Vladimir Olovyannikov f9c3b1b534 ShellPkg: Fix erroneous Status returned by ShellOpenFileByName()
In ShellOpenFileByName() the file is opened using
gEfiShellProtocol->OpenFileByName().
It is supposed that if this call returns an EFI_ERROR, the function
should return that error immediately. However, this return was missing,
and if UnicodeCollationProtocol has not been located by this time, the
Status gets overwritten with LocateProtocol() call result, which
eventually erroneously returns EFI_SUCCESS to the Shell.c, and this
leads to attempt to execute a non-existent startup script, which fails,
and which in turn leads to Shell being unloaded with "Invalid parameter"
error. This patch fixes the bug.

Cc: Tapan Shah <tapandshah@hpe.com>
Cc: Jaben Carsey <jaben.carsey@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Vladimir Olovyannikov <vladimir.olovyannikov@broadcom.com>
Reviewed-by: Tapan Shah <tapandshah@hpe.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
2016-10-07 10:35:40 -07:00
..
UefiDpLib ShellPkg/Dp: Handle memory allocation failure 2016-07-18 10:55:08 +08:00
UefiHandleParsingLib ShellPkg/UefiHandleParsingLib: fix retval for empty child controller array 2016-09-08 20:43:37 +02:00
UefiShellBcfgCommandLib ShellPkg: Add check for "dump" parameter in "bcfg" command 2016-09-01 16:38:06 +08:00
UefiShellCEntryLib ShellPkg: Refine the fomat in INF/DEC files to follow spec. 2015-01-22 01:44:11 +00:00
UefiShellCommandLib ShellPkg: Remove current working dir path ".;" from 'path' variable 2016-09-22 14:17:34 -07:00
UefiShellDebug1CommandsLib ShellPkg/Hexedit: Fix FreePool() ASSERT() when writing disk 2016-10-03 15:05:40 -07:00
UefiShellDriver1CommandsLib ShellPkg: Update help output for disconnect command 2016-09-23 10:39:42 -07:00
UefiShellInstall1CommandsLib Revert "ShellPkg : Add UEFI_APPLICATION module type to UefiShellInstall1CommandsLib.inf" 2016-01-06 16:23:20 +00:00
UefiShellLevel1CommandsLib ShellPkg/If: Fix issue to pass static code checker 2016-07-25 10:20:13 +08:00
UefiShellLevel2CommandsLib ShellPkg/Ls: Handle the case when SearchString is NULL 2016-08-17 13:44:51 +08:00
UefiShellLevel3CommandsLib ShellPkg: Enhance 'cls' command to change the background and foreground colors 2016-09-26 13:10:31 -07:00
UefiShellLib ShellPkg: Fix erroneous Status returned by ShellOpenFileByName() 2016-10-07 10:35:40 -07:00
UefiShellNetwork1CommandsLib ShellPkg/IfConfig: Handle memory allocation failure 2016-07-18 11:04:13 +08:00
UefiShellNetwork2CommandsLib ShellPkg/Ping6: Handle memory allocation failure 2016-07-18 11:04:22 +08:00
UefiShellTftpCommandLib ShellPkg-UefiShellTftpCommandLib: Replace compiler builtin 2016-08-10 12:56:37 +08:00