mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:25:48 +00:00
[FASTFAT]
Set the archive attribute for new non-directory files. svn path=/trunk/; revision=61258
This commit is contained in:
parent
9ac89f7ffd
commit
0aab21ffff
1 changed files with 2 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue