Change the ASSERT condition from “ASSERT (RowInfoArraySize == 1);” to “ASSERT (RowInfoArraySize <= 1);”.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5374 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12
2008-06-27 07:45:01 +00:00
parent faff3b4782
commit bd1d34eecf

View File

@ -1767,9 +1767,9 @@ DrawUnicodeWeightAtCursorN (
if (!EFI_ERROR (Status)) { if (!EFI_ERROR (Status)) {
// //
// Line breaks are handled by caller of DrawUnicodeWeightAtCursorN, so the updated parameter RowInfoArraySize by StringToImage will // 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 ( Status = UgaDraw->Blt (
UgaDraw, UgaDraw,