[FASTFAT]

Make sure the appropriate resource is exclusively acquired when playing with FCB references

svn path=/trunk/; revision=65033
This commit is contained in:
Pierre Schweitzer 2014-10-26 20:29:00 +00:00
parent 4a49b030de
commit a71e1f3760

View file

@ -292,6 +292,8 @@ vfatGrabFCB(
PDEVICE_EXTENSION pVCB,
PVFATFCB pFCB)
{
ASSERT(ExIsResourceAcquiredExclusive(&pVCB->DirResource));
++pFCB->RefCount;
}
@ -305,6 +307,8 @@ vfatReleaseFCB(
DPRINT("releasing FCB at %p: %wZ, refCount:%d\n",
pFCB, &pFCB->PathNameU, pFCB->RefCount);
ASSERT(ExIsResourceAcquiredExclusive(&pVCB->DirResource));
while (pFCB)
{
pFCB->RefCount--;