Revert my last changes.
authorHartmut Birr <osexpert@googlemail.com>
Sun, 18 Sep 2005 15:25:34 +0000 (15:25 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Sun, 18 Sep 2005 15:25:34 +0000 (15:25 +0000)
svn path=/trunk/; revision=17913

reactos/drivers/fs/vfat/cleanup.c
reactos/drivers/fs/vfat/create.c

index c56f4fb..db2cccc 100644 (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;
 }
index dbcef14..18e473a 100644 (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,