Revert my last changes.
[reactos.git] / reactos / drivers / fs / vfat / cleanup.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;
 }