mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
[FASTFAT]
Set the archive attribute for opened non-directory files in overwrite or supersede mode. svn path=/trunk/; revision=61259
This commit is contained in:
parent
0aab21ffff
commit
02b443855b
1 changed files with 7 additions and 0 deletions
|
@ -694,6 +694,13 @@ VfatCreateFile(
|
|||
RequestedDisposition == FILE_OVERWRITE_IF ||
|
||||
RequestedDisposition == FILE_SUPERSEDE)
|
||||
{
|
||||
if (!(*pFcb->Attributes & FILE_ATTRIBUTE_DIRECTORY))
|
||||
{
|
||||
*pFcb->Attributes = Stack->Parameters.Create.FileAttributes & ~FILE_ATTRIBUTE_NORMAL;
|
||||
*pFcb->Attributes |= FILE_ATTRIBUTE_ARCHIVE;
|
||||
VfatUpdateEntry(pFcb);
|
||||
}
|
||||
|
||||
ExAcquireResourceExclusiveLite(&(pFcb->MainResource), TRUE);
|
||||
Status = VfatSetAllocationSizeInformation(FileObject,
|
||||
pFcb,
|
||||
|
|
Loading…
Reference in a new issue