From 92f62cfe0a74eaea750104249761f207e8755e88 Mon Sep 17 00:00:00 2001 From: Eric Dong Date: Fri, 28 Aug 2015 04:28:05 +0000 Subject: DisplayEngineDxe: Fixed calculate help string page count error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Cc: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18348 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MdeModulePkg/Universal') diff --git a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c index 938cce4141..a391442d16 100644 --- a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c +++ b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c @@ -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 { -- cgit v1.2.3