mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[FASTFAT]
Make sure the appropriate resource is exclusively acquired when playing with FCB references svn path=/trunk/; revision=65033
This commit is contained in:
@@ -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--;
|
||||
|
||||
Reference in New Issue
Block a user