From 9168df3dea65f707d1e9c32eba5e18ef6b84e5cd Mon Sep 17 00:00:00 2001 From: Ruiyu Ni Date: Thu, 14 Jul 2016 15:04:38 +0800 Subject: ShellPkg/ShellProtocol.c: Handle memory allocation failure Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Jaben Carsey --- ShellPkg/Application/Shell/ShellProtocol.h | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'ShellPkg/Application/Shell/ShellProtocol.h') diff --git a/ShellPkg/Application/Shell/ShellProtocol.h b/ShellPkg/Application/Shell/ShellProtocol.h index 5a7638920d..4f701cb749 100644 --- a/ShellPkg/Application/Shell/ShellProtocol.h +++ b/ShellPkg/Application/Shell/ShellProtocol.h @@ -3,7 +3,7 @@ manipulation, and initialization of EFI_SHELL_PROTOCOL. (C) Copyright 2014 Hewlett-Packard Development Company, L.P.
- Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2016, 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 which accompanies this distribution. The full text of the license may be found at @@ -49,7 +49,7 @@ CreatePopulateInstallShellProtocol ( ); /** - Opposite of CreatePopulateInstallShellProtocol. + Opposite of CreatePopulateInstallShellProtocol. Free all memory and restore the system to the state it was in before calling CreatePopulateInstallShellProtocol. @@ -59,11 +59,22 @@ CreatePopulateInstallShellProtocol ( @retval EFI_SUCCESS The operation was successful. **/ EFI_STATUS -EFIAPI CleanUpShellProtocol ( IN OUT EFI_SHELL_PROTOCOL *NewShell ); +/** + Cleanup the shell environment. + + @param[in, out] NewShell The pointer to the new shell protocol structure. + + @retval EFI_SUCCESS The operation was successful. +**/ +EFI_STATUS +CleanUpShellEnvironment ( + IN OUT EFI_SHELL_PROTOCOL *NewShell + ); + /** This function creates a mapping for a device path. -- cgit v1.2.3