mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Revert my last changes.
svn path=/trunk/; revision=17913
This commit is contained in:
parent
dbb79dd925
commit
45694d291d
2 changed files with 3 additions and 8 deletions
|
@ -75,10 +75,7 @@ VfatCleanupFile(PVFAT_IRP_CONTEXT IrpContext)
|
|||
CcUninitializeCacheMap (FileObject, NULL, NULL);
|
||||
#endif
|
||||
pFcb->OpenHandleCount--;
|
||||
if (!(*pFcb->Attributes & FILE_ATTRIBUTE_DIRECTORY))
|
||||
{
|
||||
IoRemoveShareAccess(FileObject, &pFcb->FCBShareAccess);
|
||||
}
|
||||
IoRemoveShareAccess(FileObject, &pFcb->FCBShareAccess);
|
||||
}
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
|
|
@ -612,8 +612,7 @@ VfatCreateFile (PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
|||
|
||||
pFcb = FileObject->FsContext;
|
||||
|
||||
if (pFcb->OpenHandleCount != 0 &&
|
||||
!(*pFcb->Attributes & FILE_ATTRIBUTE_DIRECTORY))
|
||||
if (pFcb->OpenHandleCount != 0)
|
||||
{
|
||||
Status = IoCheckShareAccess(Stack->Parameters.Create.SecurityContext->DesiredAccess,
|
||||
Stack->Parameters.Create.ShareAccess,
|
||||
|
@ -709,8 +708,7 @@ VfatCreateFile (PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
|||
}
|
||||
}
|
||||
|
||||
if (pFcb->OpenHandleCount == 0 &&
|
||||
!(*pFcb->Attributes & FILE_ATTRIBUTE_DIRECTORY))
|
||||
if (pFcb->OpenHandleCount == 0)
|
||||
{
|
||||
IoSetShareAccess(Stack->Parameters.Create.SecurityContext->DesiredAccess,
|
||||
Stack->Parameters.Create.ShareAccess,
|
||||
|
|
Loading…
Reference in a new issue