mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[FASTFAT]
Set the archive attribute for new non-directory files. svn path=/trunk/; revision=61258
This commit is contained in:
@@ -551,6 +551,8 @@ VfatCreateFile(
|
||||
RequestedDisposition == FILE_SUPERSEDE)
|
||||
{
|
||||
Attributes = Stack->Parameters.Create.FileAttributes & ~FILE_ATTRIBUTE_NORMAL;
|
||||
if (!(RequestedOptions & FILE_DIRECTORY_FILE))
|
||||
Attributes |= FILE_ATTRIBUTE_ARCHIVE;
|
||||
vfatSplitPathName(&PathNameU, NULL, &FileNameU);
|
||||
Status = VfatAddEntry(DeviceExt, &FileNameU, &pFcb, ParentFcb, RequestedOptions,
|
||||
(UCHAR)(Attributes & FILE_ATTRIBUTE_VALID_FLAGS));
|
||||
|
||||
Reference in New Issue
Block a user