From 81634bfb531b80090df896508e1b30d2f4afe11d Mon Sep 17 00:00:00 2001 From: ydong10 Date: Fri, 7 Sep 2012 01:54:47 +0000 Subject: Fix display color error when scroll up/down the screen. Signed-off-by: Eric Dong Reviewed-by: Jaben Carsey git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13705 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Application/Shell/ConsoleLogger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellPkg/Application/Shell/ConsoleLogger.c b/ShellPkg/Application/Shell/ConsoleLogger.c index fc347717d3..314fbbcb5a 100644 --- a/ShellPkg/Application/Shell/ConsoleLogger.c +++ b/ShellPkg/Application/Shell/ConsoleLogger.c @@ -473,7 +473,7 @@ AppendStringToHistory( ; Index < ConsoleInfo->ColsPerScreen ; Index++ ){ - *(ConsoleInfo->Attributes + (CopySize/sizeof(ConsoleInfo->Attributes)) + Index) = ConsoleInfo->HistoryMode.Attribute; + *(ConsoleInfo->Attributes + (CopySize/sizeof(ConsoleInfo->Attributes[0])) + Index) = ConsoleInfo->HistoryMode.Attribute; } // -- cgit v1.2.3