X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ShellPkg%2FLibrary%2FUefiShellDriver1CommandsLib%2FDevices.c;fp=ShellPkg%2FLibrary%2FUefiShellDriver1CommandsLib%2FDevices.c;h=c596baeb2013e9eb3ccce1663cf96619e80ad197;hb=227a4b1c489308275bfbb955c4fd2f3f36e7a04d;hp=f962bf40c056042f43e0a271e67e9925fd319639;hpb=89732f464eafc76057e804718284c2667f04c312;p=mirror_edk2.git
diff --git a/ShellPkg/Library/UefiShellDriver1CommandsLib/Devices.c b/ShellPkg/Library/UefiShellDriver1CommandsLib/Devices.c
index f962bf40c0..c596baeb20 100644
--- a/ShellPkg/Library/UefiShellDriver1CommandsLib/Devices.c
+++ b/ShellPkg/Library/UefiShellDriver1CommandsLib/Devices.c
@@ -1,7 +1,7 @@
/** @file
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.
Copyright (c) 2010 - 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
@@ -250,6 +250,11 @@ ShellCommandRunDevices (
if (Name != NULL) {
FreePool(Name);
}
+ if (ShellGetExecutionBreakFlag ()) {
+ ShellStatus = SHELL_ABORTED;
+ break;
+ }
+
}
if (HandleList != NULL) {