diff options
author | david wei <david.wei@intel.com> | 2016-07-01 15:05:48 +0800 |
---|---|---|
committer | david wei <david.wei@intel.com> | 2016-07-01 15:05:48 +0800 |
commit | 87f66b63d409fde7d2ea018b65a63986ba413f1f (patch) | |
tree | 27f2ff44929e3d93507ff5ade7719c0ddeb619c0 /ShellPkg/Library/UefiShellLevel1CommandsLib/If.c | |
parent | ba53301f509fcd092f9d52b7c6e1f7428ec00176 (diff) | |
parent | a4c5a436c8bd9c8bef84f2642897fd5cca1dcfb6 (diff) | |
download | edk2-platforms-87f66b63d409fde7d2ea018b65a63986ba413f1f.tar.xz |
Merge branch 'master' of https://github.com/tianocore/edk2
Diffstat (limited to 'ShellPkg/Library/UefiShellLevel1CommandsLib/If.c')
-rw-r--r-- | ShellPkg/Library/UefiShellLevel1CommandsLib/If.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ShellPkg/Library/UefiShellLevel1CommandsLib/If.c b/ShellPkg/Library/UefiShellLevel1CommandsLib/If.c index 7abfd8944b..dc96bffde7 100644 --- a/ShellPkg/Library/UefiShellLevel1CommandsLib/If.c +++ b/ShellPkg/Library/UefiShellLevel1CommandsLib/If.c @@ -991,8 +991,11 @@ ShellCommandRunElse ( IN EFI_SYSTEM_TABLE *SystemTable
)
{
+ EFI_STATUS Status;
SCRIPT_FILE *CurrentScriptFile;
- ASSERT_EFI_ERROR(CommandInit());
+
+ Status = CommandInit ();
+ ASSERT_EFI_ERROR (Status);
if (gEfiShellParametersProtocol->Argc > 1) {
ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel1HiiHandle, L"if");
@@ -1066,8 +1069,11 @@ ShellCommandRunEndIf ( IN EFI_SYSTEM_TABLE *SystemTable
)
{
+ EFI_STATUS Status;
SCRIPT_FILE *CurrentScriptFile;
- ASSERT_EFI_ERROR(CommandInit());
+
+ Status = CommandInit ();
+ ASSERT_EFI_ERROR (Status);
if (gEfiShellParametersProtocol->Argc > 1) {
ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel1HiiHandle, L"if");
|