]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add CTRL+C support for ‘dh’ command.
authorTapan Shah <tapandshah@hp.com>
Fri, 29 Aug 2014 20:37:32 +0000 (20:37 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 29 Aug 2014 20:37:32 +0000 (20:37 +0000)
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@15995 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c

index 29801949d34ead5ced4270f46c31789106bf2cf8..ca72a9f059eee7e6902c92ca1e5017993f409116 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
   Main file for Dh shell Driver1 function.\r
 \r
+  Copyright (c) 2014, Hewlett-Packard Development Company, L.P.<BR>\r
   Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -751,6 +752,10 @@ DoDhForHandleList(
           DriverInfo,\r
           TRUE\r
          );\r
+    if (ShellGetExecutionBreakFlag ()) {\r
+      ShellStatus = SHELL_ABORTED;\r
+      break;\r
+    }\r
   }\r
   return (ShellStatus);\r
 }\r