Revert my last changes.

svn path=/trunk/; revision=17913
This commit is contained in:
Hartmut Birr 2005-09-18 15:25:34 +00:00
parent dbb79dd925
commit 45694d291d
2 changed files with 3 additions and 8 deletions

View file

@ -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;
}

View file

@ -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,