Author: pschweitzer
Date: Mon Dec 8 19:36:40 2014
New Revision: 65592
URL:
http://svn.reactos.org/svn/reactos?rev=65592&view=rev
Log:
[NTFS]
On FCB creation, merge file attributes from $FILE_NAME and from $STANDARD_INFORMATION
Not sure it's fully legal, but it allows us to catch them all!
Modified:
trunk/reactos/drivers/filesystems/ntfs/fcb.c
Modified: trunk/reactos/drivers/filesystems/ntfs/fcb.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/fcb.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/fcb.c [iso-8859-1] Mon Dec 8 19:36:40 2014
@@ -399,6 +399,7 @@
{
WCHAR pathName[MAX_PATH];
PFILENAME_ATTRIBUTE FileName;
+ PSTANDARD_INFORMATION StdInfo;
PNTFS_FCB rcFCB;
DPRINT1("NtfsMakeFCBFromDirEntry(%p, %p, %wZ, %p, %p)\n", Vcb,
DirectoryFCB, Name, Record, fileFCB);
@@ -433,6 +434,12 @@
rcFCB->RFCB.FileSize.QuadPart = FileName->DataSize;
rcFCB->RFCB.ValidDataLength.QuadPart = FileName->DataSize;
rcFCB->RFCB.AllocationSize.QuadPart = FileName->AllocatedSize;
+
+ StdInfo = GetStandardInformationFromRecord(Record);
+ if (StdInfo != NULL)
+ {
+ rcFCB->Entry.FileAttributes |= StdInfo->FileAttribute;
+ }
NtfsFCBInitializeCache(Vcb, rcFCB);
rcFCB->RefCount = 1;