From bd1d34eecf99184b62bf460bc0b3ba3725b9a9e7 Mon Sep 17 00:00:00 2001 From: qwang12 Date: Fri, 27 Jun 2008 07:45:01 +0000 Subject: [PATCH] =?UTF-8?q?Change=20the=20ASSERT=20condition=20from=20?= =?UTF-8?q?=E2=80=9CASSERT=20(RowInfoArraySize=20=3D=3D=201);=E2=80=9D=20t?= =?UTF-8?q?o=20=E2=80=9CASSERT=20(RowInfoArraySize=20<=3D=201);=E2=80=9D.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5374 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c index 173070f8e9..caaa4dd46f 100644 --- a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c +++ b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c @@ -1767,9 +1767,9 @@ DrawUnicodeWeightAtCursorN ( if (!EFI_ERROR (Status)) { // // Line breaks are handled by caller of DrawUnicodeWeightAtCursorN, so the updated parameter RowInfoArraySize by StringToImage will - // always be 1. ASSERT here to make sure. + // always be 1 or 0 (if there is no valid Unicode Char can be printed). ASSERT here to make sure. // - ASSERT (RowInfoArraySize == 1); + ASSERT (RowInfoArraySize <= 1); Status = UgaDraw->Blt ( UgaDraw,