Author: pschweitzer
Date: Sat Aug 6 08:57:47 2016
New Revision: 72126
URL:
http://svn.reactos.org/svn/reactos?rev=72126&view=rev
Log:
[FASTFAT]
Don't mess with parentless FCB.
Dedicated to Thomas :-).
CORE-11377
CORE-11426
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] Sat Aug 6 08:57:47 2016
@@ -268,11 +268,15 @@
PVFATFCB pFCB)
{
FsRtlUninitializeFileLock(&pFCB->FileLock);
+ if (!vfatFCBIsRoot(pFCB) &&
+ !BooleanFlagOn(pFCB->Flags, FCB_IS_FAT) &&
!BooleanFlagOn(pFCB->Flags, FCB_IS_VOLUME))
+ {
+ RemoveEntryList(&pFCB->ParentListEntry);
+ }
ExFreePool(pFCB->PathNameBuffer);
ExDeleteResourceLite(&pFCB->PagingIoResource);
ExDeleteResourceLite(&pFCB->MainResource);
ExFreeToNPagedLookasideList(&VfatGlobalData->FcbLookasideList, pFCB);
- RemoveEntryList(&pFCB->ParentListEntry);
ASSERT(IsListEmpty(&pFCB->ParentListHead));
}