From 148af3872273ef476230db1d0df5ea00167853a1 Mon Sep 17 00:00:00 2001 From: Tapan Shah Date: Mon, 30 Jun 2014 20:14:24 +0000 Subject: ShellPkg: Fix Ctrl+C support for dmpstore command. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15604 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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.
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 -- cgit v1.2.3