summaryrefslogtreecommitdiffstats
path: root/ShellPkg
diff options
context:
space:
mode:
authorTapan Shah <tapandshah@hp.com>2014-06-30 20:14:24 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2014-06-30 20:14:24 +0000
commit148af3872273ef476230db1d0df5ea00167853a1 (patch)
tree1efd6dca30b8a76b5f7006cbeb88aac4b87cf11d /ShellPkg
parent48178d7ab12ad5157500b5b58331175edcd1d400 (diff)
downloadedk2-148af3872273ef476230db1d0df5ea00167853a1.tar.gz
edk2-148af3872273ef476230db1d0df5ea00167853a1.tar.bz2
edk2-148af3872273ef476230db1d0df5ea00167853a1.zip
ShellPkg: Fix Ctrl+C support for dmpstore command.
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@15604 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg')
-rw-r--r--ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c
index 5642f6ff55..00fe3ad923 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c
@@ -1,6 +1,7 @@
/** @file
Main file for DmpStore shell Debug1 function.
-
+
+ (C) Copyright 2013-2014, Hewlett-Packard Development Company, L.P.
Copyright (c) 2005 - 2014, 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
@@ -430,6 +431,11 @@ CascadeProcessVariables (
//
ShellStatus = CascadeProcessVariables(Name, Guid, Type, FileHandle, FoundVarName, FoundVarGuid, FoundOne);
+ if (ShellGetExecutionBreakFlag() || (ShellStatus == SHELL_ABORTED)) {
+ SHELL_FREE_NON_NULL(FoundVarName);
+ return (SHELL_ABORTED);
+ }
+
//
// No matter what happened we process our own variable
// Only continue if Guid and VariableName are each either NULL or a match