From dcf9b428e66e2bc57b70e7e0289f07c72efbbb44 Mon Sep 17 00:00:00 2001 From: Chris Phillips Date: Thu, 24 Oct 2013 17:47:57 +0000 Subject: ShellPkg: Fixes the shell so output redirection works for the 'mode' command Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14800 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Application/Shell/ConsoleWrappers.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'ShellPkg/Application/Shell/ConsoleWrappers.h') diff --git a/ShellPkg/Application/Shell/ConsoleWrappers.h b/ShellPkg/Application/Shell/ConsoleWrappers.h index 572113d..13d12e8 100644 --- a/ShellPkg/Application/Shell/ConsoleWrappers.h +++ b/ShellPkg/Application/Shell/ConsoleWrappers.h @@ -1,6 +1,7 @@ /** @file Function definitions for shell simple text in and out on top of file handles. + Copyright (c) 2013 Hewlett-Packard Development Company, L.P. Copyright (c) 2010 - 2011, 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 @@ -50,8 +51,9 @@ CloseSimpleTextInOnFile( Function to create a EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL on top of a SHELL_FILE_HANDLE to support redirecting output from a file. - @param[in] FileHandleToUse The pointer to the SHELL_FILE_HANDLE to use. - @param[in] HandleLocation The pointer of a location to copy handle with protocol to. + @param[in] FileHandleToUse The pointer to the SHELL_FILE_HANDLE to use. + @param[in] HandleLocation The pointer of a location to copy handle with protocol to. + @param[in] OriginalProtocol The pointer to the original output protocol for pass thru of functions. @retval NULL There was insufficient memory available. @return A pointer to the allocated protocol structure; @@ -59,8 +61,9 @@ CloseSimpleTextInOnFile( EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL* EFIAPI CreateSimpleTextOutOnFile( - IN SHELL_FILE_HANDLE FileHandleToUse, - IN EFI_HANDLE *HandleLocation + IN SHELL_FILE_HANDLE FileHandleToUse, + IN EFI_HANDLE *HandleLocation, + IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *OriginalProtocol ); /** -- cgit v1.1