]> git.proxmox.com Git - mirror_edk2.git/commitdiff
DisplayEngineDxe: Fixed calculate help string page count error.
authorEric Dong <eric.dong@intel.com>
Fri, 28 Aug 2015 04:28:05 +0000 (04:28 +0000)
committerydong10 <ydong10@Edk2>
Fri, 28 Aug 2015 04:28:05 +0000 (04:28 +0000)
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

MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c

index 938cce41410609f96fbafc7e8fc1a68d3b0b4895..a391442d169ac02e3d175b7046aeb38574cb2efc 100644 (file)
@@ -2949,7 +2949,7 @@ UiDisplayMenu (
           //\r
           if (HelpLine > 2 * RowCount - 2) {\r
             HelpPageCount = (HelpLine - RowCount + 1) / (RowCount - 2) + 1;\r
-            if ((HelpLine - RowCount + 1) % (RowCount - 2) > 1) {\r
+            if ((HelpLine - RowCount + 1) % (RowCount - 2) != 0) {\r
               HelpPageCount += 1;\r
             }\r
           } else {\r