mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 04:35:07 +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)
|
||||
{
|
||||
DPRINT1("Volume\n");
|
||||
pFcb->RefCount--;
|
||||
FileObject->FsContext2 = NULL;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue