diff options
Diffstat (limited to 'FatPkg/EnhancedFatDxe/DirectoryManage.c')
-rw-r--r-- | FatPkg/EnhancedFatDxe/DirectoryManage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FatPkg/EnhancedFatDxe/DirectoryManage.c b/FatPkg/EnhancedFatDxe/DirectoryManage.c index 91e7599e27..3328ae31fe 100644 --- a/FatPkg/EnhancedFatDxe/DirectoryManage.c +++ b/FatPkg/EnhancedFatDxe/DirectoryManage.c @@ -118,7 +118,7 @@ Returns: SetMem (LfnBuffer, sizeof (CHAR16) * LFN_CHAR_TOTAL * EntryCount, 0xff);
Status = StrCpyS (
LfnBuffer,
- sizeof (LfnBuffer) / sizeof (LfnBuffer[0]),
+ ARRAY_SIZE (LfnBuffer),
DirEnt->FileString
);
if (EFI_ERROR (Status)) {
@@ -360,7 +360,7 @@ Returns: FatGetFileNameViaCaseFlag (
DirEnt,
LfnBuffer,
- sizeof (LfnBuffer) / sizeof (LfnBuffer[0])
+ ARRAY_SIZE (LfnBuffer)
);
}
|