]> git.proxmox.com Git - mirror_edk2.git/commitdiff
correct leap year calculate method.
authorydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 5 Jul 2011 09:30:49 +0000 (09:30 +0000)
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 5 Jul 2011 09:30:49 +0000 (09:30 +0000)
Signed-off-by:ydong10
Reviewed-by:hhtian

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11982 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/SetupBrowserDxe/InputHandler.c

index d31a9b9ddc5d79a3c1c0074316cd2a13b48dbfd4..8f3b9e72dc61f4699c1c587df8f317606ea239ac 100644 (file)
@@ -302,8 +302,8 @@ GetNumericInput (
       switch (QuestionValue->Value.date.Month) {\r
       case 2:\r
         if ((QuestionValue->Value.date.Year % 4) == 0  && \r
-            (QuestionValue->Value.date.Year % 100) != 0 && \r
-            (QuestionValue->Value.date.Year % 400) == 0) {\r
+            ((QuestionValue->Value.date.Year % 100) != 0 || \r
+            (QuestionValue->Value.date.Year % 400) == 0)) {\r
           Maximum = 29;\r
         } else {\r
           Maximum = 28;\r