Revision: 17584 http://sourceforge.net/p/edk2/code/17584 Author: shenshushi Date: 2015-06-09 02:29:37 +0000 (Tue, 09 Jun 2015) Log Message: ----------- ShellPkg\Application\Shell: Clean start row information after the console has been Reset or SetMode.
OriginalStartRow and CurrentStartRow should be initialized after new mode is set. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin <shumin....@intel.com> Signed-off-by: Eric Jin <eric....@intel.com> Reviewed-by: Jaben Carsey <jaben.car...@intel.com> Modified Paths: -------------- trunk/edk2/ShellPkg/Application/Shell/ConsoleLogger.c Modified: trunk/edk2/ShellPkg/Application/Shell/ConsoleLogger.c =================================================================== --- trunk/edk2/ShellPkg/Application/Shell/ConsoleLogger.c 2015-06-09 01:14:10 UTC (rev 17583) +++ trunk/edk2/ShellPkg/Application/Shell/ConsoleLogger.c 2015-06-09 02:29:37 UTC (rev 17584) @@ -2,7 +2,7 @@ Provides interface to shell console logger. (C) Copyright 2013 Hewlett-Packard Development Company, L.P.<BR> - Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR> + Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR> 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 @@ -410,6 +410,10 @@ // if (!EFI_ERROR (Status)) { ConsoleLoggerResetBuffers(ConsoleInfo); + if (ExtendedVerification == TRUE) { + ConsoleInfo->OriginalStartRow = 0; + ConsoleInfo->CurrentStartRow = 0; + } } return Status; @@ -963,10 +967,13 @@ // Check that the buffers are still correct for logging // if (!EFI_ERROR (Status)) { - ConsoleInfo->OurConOut.Mode = gST->ConOut->Mode; + ConsoleInfo->OurConOut.Mode = ConsoleInfo->OldConOut->Mode; ConsoleLoggerResetBuffers(ConsoleInfo); + ConsoleInfo->OriginalStartRow = 0; + ConsoleInfo->CurrentStartRow = 0; + ConsoleInfo->OurConOut.ClearScreen (&ConsoleInfo->OurConOut); } - + return Status; } ------------------------------------------------------------------------------ _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits