[FASTFAT]

- The volume FCB is not reference counted, so don't dereference it on close.

svn path=/trunk/; revision=65171
This commit is contained in:
Thomas Faber 2014-11-01 18:00:15 +00:00
parent 2420e2ff0d
commit 6f9a074461
2 changed files with 2 additions and 1 deletions

View file

@ -42,7 +42,6 @@ VfatCloseFile(
if (pFcb->Flags & FCB_IS_VOLUME)
{
DPRINT1("Volume\n");
pFcb->RefCount--;
FileObject->FsContext2 = NULL;
}
else

View file

@ -294,6 +294,7 @@ vfatGrabFCB(
{
ASSERT(ExIsResourceAcquiredExclusive(&pVCB->DirResource));
ASSERT(pFCB != pVCB->VolumeFcb);
++pFCB->RefCount;
}
@ -311,6 +312,7 @@ vfatReleaseFCB(
while (pFCB)
{
ASSERT(pFCB != pVCB->VolumeFcb);
pFCB->RefCount--;
if (pFCB->RefCount == 0)
{