summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjcarsey <jcarsey>2014-10-07 19:58:43 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2014-10-07 19:58:43 +0000
commit842949fa8099a9c627ffe9f62f36214898c33a12 (patch)
tree4e06d9b07fed7f35ba0172002a6020cdc573941d
parent88963516461abf48243acee848703981187ed97c (diff)
downloadedk2-platforms-842949fa8099a9c627ffe9f62f36214898c33a12.tar.xz
ShellPkg: hexedit command does not return lasterror equal to 0 when exiting from editor
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by : Tapan Shah <tapandshah@hp.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16197 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/HexEdit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/HexEdit.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/HexEdit.c
index 8cbfd2c8f6..1d6e428445 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/HexEdit.c
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/HexEdit.c
@@ -1,6 +1,7 @@
/** @file
Main entry point of editor
+ (C) Copyright 2014, Hewlett-Packard Development Company, L.P.
Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -241,7 +242,7 @@ ShellCommandRunHexEdit (
//
HMainEditorCleanup ();
- if (!EFI_ERROR (Status)) {
+ if (EFI_ERROR (Status)) {
if (ShellStatus == SHELL_SUCCESS) {
ShellStatus = SHELL_UNSUPPORTED;
}