]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Console/TerminalDxe/Ansi.c
MdeModulePkg: Use PcdSet##S to replace PcdSet##
[mirror_edk2.git] / MdeModulePkg / Universal / Console / TerminalDxe / Ansi.c
index c24108b51289bc0465e6af2efd56f7f159ee8b4d..15147c1f2c2da89111265ca62247f41da5d09619 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   Implementation of translation upon PC ANSI.\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
 http://opensource.org/licenses/bsd-license.php\r
@@ -34,7 +34,7 @@ AnsiRawDataToUnicode (
   // and translate it into unicode, then push\r
   // the unicode into unicode fifo, until the raw fifo is empty.\r
   //\r
-  while (!IsRawFiFoEmpty (TerminalDevice)) {\r
+  while (!IsRawFiFoEmpty (TerminalDevice) && !IsUnicodeFiFoFull (TerminalDevice)) {\r
 \r
     RawFiFoRemoveOneKey (TerminalDevice, &RawData);\r
 \r