Author: fireball
Date: Fri Nov 21 04:17:14 2008
New Revision: 37504
URL:
http://svn.reactos.org/svn/reactos?rev=37504&view=rev
Log:
- Always uninit cache for a file object (official documentation requires this).
Modified:
trunk/reactos/drivers/filesystems/fastfat/cleanup.c
Modified: trunk/reactos/drivers/filesystems/fastfat/cleanup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/cleanup.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/cleanup.c [iso-8859-1] Fri Nov 21 04:17:14
2008
@@ -84,11 +84,10 @@
CcPurgeCacheSection(FileObject->SectionObjectPointer, NULL, 0, FALSE);
}
+
/* Uninitialize file cache if. */
- if (FileObject->SectionObjectPointer->SharedCacheMap)
- {
- CcUninitializeCacheMap (FileObject, &pFcb->RFCB.FileSize, NULL);
- }
+ CcUninitializeCacheMap (FileObject, &pFcb->RFCB.FileSize, NULL);
+
if (pFcb->OpenHandleCount != 0)
{
IoRemoveShareAccess(FileObject, &pFcb->FCBShareAccess);