mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[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! svn path=/trunk/; revision=65592
This commit is contained in:
@@ -399,6 +399,7 @@ NtfsMakeFCBFromDirEntry(PNTFS_VCB Vcb,
|
||||
{
|
||||
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);
|
||||
@@ -434,6 +435,12 @@ NtfsMakeFCBFromDirEntry(PNTFS_VCB Vcb,
|
||||
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;
|
||||
rcFCB->MFTIndex = MFTIndex;
|
||||
|
||||
Reference in New Issue
Block a user