]> git.proxmox.com Git - mirror_edk2.git/blobdiff - FatPkg/FatPei/FatLiteAccess.c
1. Expand and add null terminate to end of string like function comments said in...
[mirror_edk2.git] / FatPkg / FatPei / FatLiteAccess.c
index 53f5e3f60cbbc118c01846b66fc99e9ea43257bb..110634508bf497905c261da81f7dc77e3019ce14 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   FAT file system access routines for FAT recovery PEIM\r
 \r
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials are licensed and made available\r
 under the terms and conditions of the BSD License which accompanies this\r
@@ -475,7 +475,7 @@ FatReadNextDirectoryEntry (
     // We only search for *FILE* in root directory\r
     // Long file name entry is *NOT* supported\r
     //\r
-    if ((DirEntry.Attributes == FAT_ATTR_DIRECTORY) || (DirEntry.Attributes == FAT_ATTR_LFN)) {\r
+    if (((DirEntry.Attributes & FAT_ATTR_DIRECTORY) == FAT_ATTR_DIRECTORY) || (DirEntry.Attributes == FAT_ATTR_LFN)) {\r
       continue;\r
     }\r
     //\r