mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +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:
parent
4a49b030de
commit
a71e1f3760
1 changed files with 4 additions and 0 deletions
|
@ -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--;
|
||||
|
|
Loading…
Reference in a new issue