--- trunk/reactos/drivers/fs/vfat/cleanup.c 2005-09-18 13:46:37 UTC (rev 17912)
+++ trunk/reactos/drivers/fs/vfat/cleanup.c 2005-09-18 15:25:34 UTC (rev 17913)
@@ -75,10 +75,7 @@
CcUninitializeCacheMap (FileObject, NULL, NULL);
#endif
pFcb->OpenHandleCount--;
- if (!(*pFcb->Attributes & FILE_ATTRIBUTE_DIRECTORY))
- {
- IoRemoveShareAccess(FileObject, &pFcb->FCBShareAccess);
- }
+ IoRemoveShareAccess(FileObject, &pFcb->FCBShareAccess);
}
return STATUS_SUCCESS;
}
--- trunk/reactos/drivers/fs/vfat/create.c 2005-09-18 13:46:37 UTC (rev 17912)
+++ trunk/reactos/drivers/fs/vfat/create.c 2005-09-18 15:25:34 UTC (rev 17913)
@@ -612,8 +612,7 @@
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 @@
}
}
- if (pFcb->OpenHandleCount == 0 &&
- !(*pFcb->Attributes & FILE_ATTRIBUTE_DIRECTORY))
+ if (pFcb->OpenHandleCount == 0)
{
IoSetShareAccess(Stack->Parameters.Create.SecurityContext->DesiredAccess,
Stack->Parameters.Create.ShareAccess,