mirror of
https://github.com/reactos/reactos.git
synced 2026-06-21 06:05:59 +08:00
Ext2 and NTFS:
- Remove FCB from the linked list when it's released NTFS: - Check we have a FCB before releasing it svn path=/trunk/; revision=34041
This commit is contained in:
@@ -895,6 +895,8 @@ PtrExt2FCB PtrFCB)
|
||||
ExDeleteResourceLite( &PtrFCB->NTRequiredFCB.MainResource );
|
||||
ExDeleteResourceLite( &PtrFCB->NTRequiredFCB.PagingIoResource );
|
||||
|
||||
RemoveEntryList(&(PtrFCB->NextFCB));
|
||||
|
||||
if( PtrFCB->FCBName )
|
||||
{
|
||||
Ext2ReleaseObjectName( PtrFCB->FCBName );
|
||||
|
||||
@@ -109,8 +109,13 @@ NtfsCreateFCB(PCWSTR FileName, PNTFS_VCB Vcb)
|
||||
VOID
|
||||
NtfsDestroyFCB(PNTFS_FCB Fcb)
|
||||
{
|
||||
ASSERT(Fcb);
|
||||
ASSERT(Fcb->Identifier.Type == NTFS_TYPE_FCB);
|
||||
|
||||
ExDeleteResourceLite(&Fcb->MainResource);
|
||||
|
||||
RemoveEntryList(&(Fcb->FcbListEntry));
|
||||
|
||||
ExFreePool(Fcb);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user