]> git.proxmox.com Git - mirror_edk2.git/commitdiff
In PrintXY() and AsciiPrintXY(), the number of chartacter returned is at most PcdUefi...
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 11 May 2009 06:58:28 +0000 (06:58 +0000)
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 11 May 2009 06:58:28 +0000 (06:58 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8289 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/UefiLib/UefiLibPrint.c

index 0ee2c23eb2da261c75341e474f534b8ef8e4e33b..fc68e6659ad327059c755f921e917f344c93f9a5 100644 (file)
@@ -419,8 +419,7 @@ InternalPrintGraphic (
 \r
   LineBufferLen = sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL) * HorizontalResolution * EFI_GLYPH_HEIGHT;\r
   if (EFI_GLYPH_WIDTH * EFI_GLYPH_HEIGHT * sizeof(EFI_GRAPHICS_OUTPUT_BLT_PIXEL) * PrintNum > LineBufferLen) {\r
-     Status = EFI_INVALID_PARAMETER;\r
-     goto Error;\r
+    PrintNum = HorizontalResolution / EFI_GLYPH_WIDTH;\r
   }\r
 \r
   Blt = (EFI_IMAGE_OUTPUT *) AllocateZeroPool (sizeof (EFI_IMAGE_OUTPUT));\r