Author: tfaber
Date: Sat Nov 1 18:00:15 2014
New Revision: 65171
URL:
http://svn.reactos.org/svn/reactos?rev=65171&view=rev
Log:
[FASTFAT]
- The volume FCB is not reference counted, so don't dereference it on close.
Modified:
trunk/reactos/drivers/filesystems/fastfat/close.c
trunk/reactos/drivers/filesystems/fastfat/fcb.c
Modified: trunk/reactos/drivers/filesystems/fastfat/close.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/close.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/close.c [iso-8859-1] Sat Nov 1 18:00:15
2014
@@ -42,7 +42,6 @@
if (pFcb->Flags & FCB_IS_VOLUME)
{
DPRINT1("Volume\n");
- pFcb->RefCount--;
FileObject->FsContext2 = NULL;
}
else
Modified: trunk/reactos/drivers/filesystems/fastfat/fcb.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/fcb.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/fcb.c [iso-8859-1] Sat Nov 1 18:00:15 2014
@@ -294,6 +294,7 @@
{
ASSERT(ExIsResourceAcquiredExclusive(&pVCB->DirResource));
+ ASSERT(pFCB != pVCB->VolumeFcb);
++pFCB->RefCount;
}
@@ -311,6 +312,7 @@
while (pFCB)
{
+ ASSERT(pFCB != pVCB->VolumeFcb);
pFCB->RefCount--;
if (pFCB->RefCount == 0)
{