mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user