diff options
author | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-09-07 01:54:47 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-09-07 01:54:47 +0000 |
commit | 81634bfb531b80090df896508e1b30d2f4afe11d (patch) | |
tree | 23331422f26dbb592d824c9d54a36ba66e30673e /ShellPkg | |
parent | 16bacc07205af83520ddbdb9f69ac12011659b66 (diff) | |
download | edk2-81634bfb531b80090df896508e1b30d2f4afe11d.tar.gz edk2-81634bfb531b80090df896508e1b30d2f4afe11d.tar.bz2 edk2-81634bfb531b80090df896508e1b30d2f4afe11d.zip |
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
Diffstat (limited to 'ShellPkg')
-rw-r--r-- | ShellPkg/Application/Shell/ConsoleLogger.c | 2 |
1 files changed, 1 insertions, 1 deletions
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;
}
//
|