Author: pschweitzer
Date: Sun Oct 26 20:29:00 2014
New Revision: 65033
URL:
http://svn.reactos.org/svn/reactos?rev=65033&view=rev
Log:
[FASTFAT]
Make sure the appropriate resource is exclusively acquired when playing with FCB
references
Modified:
trunk/reactos/drivers/filesystems/fastfat/fcb.c
Modified: trunk/reactos/drivers/filesystems/fastfat/fcb.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/fcb.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/fcb.c [iso-8859-1] Sun Oct 26 20:29:00 2014
@@ -292,6 +292,8 @@
PDEVICE_EXTENSION pVCB,
PVFATFCB pFCB)
{
+ ASSERT(ExIsResourceAcquiredExclusive(&pVCB->DirResource));
+
++pFCB->RefCount;
}
@@ -304,6 +306,8 @@
DPRINT("releasing FCB at %p: %wZ, refCount:%d\n",
pFCB, &pFCB->PathNameU, pFCB->RefCount);
+
+ ASSERT(ExIsResourceAcquiredExclusive(&pVCB->DirResource));
while (pFCB)
{