mirror of
https://github.com/reactos/reactos.git
synced 2024-10-08 02:13:56 +00:00
[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:
parent
2420e2ff0d
commit
6f9a074461
|
@ -42,7 +42,6 @@ VfatCloseFile(
|
||||||
if (pFcb->Flags & FCB_IS_VOLUME)
|
if (pFcb->Flags & FCB_IS_VOLUME)
|
||||||
{
|
{
|
||||||
DPRINT1("Volume\n");
|
DPRINT1("Volume\n");
|
||||||
pFcb->RefCount--;
|
|
||||||
FileObject->FsContext2 = NULL;
|
FileObject->FsContext2 = NULL;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -294,6 +294,7 @@ vfatGrabFCB(
|
||||||
{
|
{
|
||||||
ASSERT(ExIsResourceAcquiredExclusive(&pVCB->DirResource));
|
ASSERT(ExIsResourceAcquiredExclusive(&pVCB->DirResource));
|
||||||
|
|
||||||
|
ASSERT(pFCB != pVCB->VolumeFcb);
|
||||||
++pFCB->RefCount;
|
++pFCB->RefCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -311,6 +312,7 @@ vfatReleaseFCB(
|
||||||
|
|
||||||
while (pFCB)
|
while (pFCB)
|
||||||
{
|
{
|
||||||
|
ASSERT(pFCB != pVCB->VolumeFcb);
|
||||||
pFCB->RefCount--;
|
pFCB->RefCount--;
|
||||||
if (pFCB->RefCount == 0)
|
if (pFCB->RefCount == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue