Fix display color error when scroll up/down the screen.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13705 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
ydong10 2012-09-07 01:54:47 +00:00
parent 16bacc0720
commit 81634bfb53
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
//