DisplayEngineDxe: Fixed calculate help string page count error.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Cc: Liming Gao <liming.gao@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18348 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Eric Dong 2015-08-28 04:28:05 +00:00 committed by ydong10
parent fbce471eb1
commit 92f62cfe0a
1 changed files with 1 additions and 1 deletions

View File

@ -2949,7 +2949,7 @@ UiDisplayMenu (
//
if (HelpLine > 2 * RowCount - 2) {
HelpPageCount = (HelpLine - RowCount + 1) / (RowCount - 2) + 1;
if ((HelpLine - RowCount + 1) % (RowCount - 2) > 1) {
if ((HelpLine - RowCount + 1) % (RowCount - 2) != 0) {
HelpPageCount += 1;
}
} else {