]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix display color error when scroll up/down the screen.
authorydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 7 Sep 2012 01:54:47 +0000 (01:54 +0000)
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 7 Sep 2012 01:54:47 +0000 (01:54 +0000)
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

ShellPkg/Application/Shell/ConsoleLogger.c

index fc347717d3f7feba30f29cc7a5d0a0e3ade7b981..314fbbcb5a9c06f7332794ebcdc1699bd4437c3b 100644 (file)
@@ -473,7 +473,7 @@ AppendStringToHistory(
             ; Index < ConsoleInfo->ColsPerScreen\r
             ; Index++\r
            ){\r
-          *(ConsoleInfo->Attributes + (CopySize/sizeof(ConsoleInfo->Attributes)) + Index) = ConsoleInfo->HistoryMode.Attribute;\r
+          *(ConsoleInfo->Attributes + (CopySize/sizeof(ConsoleInfo->Attributes[0])) + Index) = ConsoleInfo->HistoryMode.Attribute;\r
         }\r
 \r
         //\r