X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=FatPkg%2FFatPei%2FFatLiteAccess.c;h=110634508bf497905c261da81f7dc77e3019ce14;hp=53f5e3f60cbbc118c01846b66fc99e9ea43257bb;hb=3ba5368df0a3d459606fe78bc73776359c8bc005;hpb=f4500fc17952c367d21d89defa9cd72b956e6637 diff --git a/FatPkg/FatPei/FatLiteAccess.c b/FatPkg/FatPei/FatLiteAccess.c index 53f5e3f60c..110634508b 100644 --- a/FatPkg/FatPei/FatLiteAccess.c +++ b/FatPkg/FatPei/FatLiteAccess.c @@ -1,7 +1,7 @@ /** @file FAT file system access routines for FAT recovery PEIM -Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this @@ -475,7 +475,7 @@ FatReadNextDirectoryEntry ( // We only search for *FILE* in root directory // Long file name entry is *NOT* supported // - if ((DirEntry.Attributes == FAT_ATTR_DIRECTORY) || (DirEntry.Attributes == FAT_ATTR_LFN)) { + if (((DirEntry.Attributes & FAT_ATTR_DIRECTORY) == FAT_ATTR_DIRECTORY) || (DirEntry.Attributes == FAT_ATTR_LFN)) { continue; } //