mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[FASTFAT]
Implement a special case for existing files which are opened using the FILE_OVERWRITE or FILE_OVERWRITE_IF file disposition: New file attributes must be ORed with the existing file attributes. svn path=/trunk/; revision=59023
This commit is contained in:
parent
a6b8f0a353
commit
1bb724b8c5
1 changed files with 5 additions and 1 deletions
|
@ -690,7 +690,11 @@ VfatCreateFile ( PDEVICE_OBJECT DeviceObject, PIRP Irp )
|
|||
RequestedDisposition == FILE_SUPERSEDE)
|
||||
{
|
||||
ExAcquireResourceExclusiveLite(&(pFcb->MainResource), TRUE);
|
||||
*pFcb->Attributes = Attributes | FILE_ATTRIBUTE_ARCHIVE;
|
||||
if (RequestedDisposition == FILE_OVERWRITE ||
|
||||
RequestedDisposition == FILE_OVERWRITE_IF)
|
||||
*pFcb->Attributes |= (Attributes | FILE_ATTRIBUTE_ARCHIVE);
|
||||
else
|
||||
*pFcb->Attributes = (Attributes | FILE_ATTRIBUTE_ARCHIVE);
|
||||
|
||||
Status = VfatSetAllocationSizeInformation (FileObject,
|
||||
pFcb,
|
||||
|
|
Loading…
Reference in a new issue