mirror of https://github.com/acidanthera/audk.git
Add CTRL+C support for ‘devices’ 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@15998 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
89732f464e
commit
227a4b1c48
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Main file for devices shell Driver1 function.
|
Main file for devices shell Driver1 function.
|
||||||
|
|
||||||
(C) Copyright 2012-2014, Hewlett-Packard Development Company, L.P.
|
Copyright (c) 2012-2014, Hewlett-Packard Development Company, L.P.<BR>
|
||||||
Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
|
@ -250,6 +250,11 @@ ShellCommandRunDevices (
|
||||||
if (Name != NULL) {
|
if (Name != NULL) {
|
||||||
FreePool(Name);
|
FreePool(Name);
|
||||||
}
|
}
|
||||||
|
if (ShellGetExecutionBreakFlag ()) {
|
||||||
|
ShellStatus = SHELL_ABORTED;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (HandleList != NULL) {
|
if (HandleList != NULL) {
|
||||||
|
|
Loading…
Reference in New Issue