summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--FatPkg/EnhancedFatDxe/Misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/FatPkg/EnhancedFatDxe/Misc.c b/FatPkg/EnhancedFatDxe/Misc.c
index f91759c775..c7455a4412 100644
--- a/FatPkg/EnhancedFatDxe/Misc.c
+++ b/FatPkg/EnhancedFatDxe/Misc.c
@@ -23,6 +23,7 @@ Revision History
--*/
#include "Fat.h"
+UINT8 mMonthDays[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
FAT_TASK *
FatCreateTask (
@@ -698,7 +699,6 @@ Returns:
--*/
{
- static UINT8 MonthDays[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
UINTN Day;
BOOLEAN ValidTime;
@@ -725,7 +725,7 @@ Returns:
//
// Perform a more specific check of the day of the month
//
- Day = MonthDays[Time->Month - 1];
+ Day = mMonthDays[Time->Month - 1];
if (Time->Month == 2 && IS_LEAP_YEAR (Time->Year)) {
Day += 1;
//