mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:53:07 +00: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:
parent
1334454750
commit
7cf55b1f25
2 changed files with 7 additions and 0 deletions
|
@ -895,6 +895,8 @@ PtrExt2FCB PtrFCB)
|
||||||
ExDeleteResourceLite( &PtrFCB->NTRequiredFCB.MainResource );
|
ExDeleteResourceLite( &PtrFCB->NTRequiredFCB.MainResource );
|
||||||
ExDeleteResourceLite( &PtrFCB->NTRequiredFCB.PagingIoResource );
|
ExDeleteResourceLite( &PtrFCB->NTRequiredFCB.PagingIoResource );
|
||||||
|
|
||||||
|
RemoveEntryList(&(PtrFCB->NextFCB));
|
||||||
|
|
||||||
if( PtrFCB->FCBName )
|
if( PtrFCB->FCBName )
|
||||||
{
|
{
|
||||||
Ext2ReleaseObjectName( PtrFCB->FCBName );
|
Ext2ReleaseObjectName( PtrFCB->FCBName );
|
||||||
|
|
|
@ -109,8 +109,13 @@ NtfsCreateFCB(PCWSTR FileName, PNTFS_VCB Vcb)
|
||||||
VOID
|
VOID
|
||||||
NtfsDestroyFCB(PNTFS_FCB Fcb)
|
NtfsDestroyFCB(PNTFS_FCB Fcb)
|
||||||
{
|
{
|
||||||
|
ASSERT(Fcb);
|
||||||
|
ASSERT(Fcb->Identifier.Type == NTFS_TYPE_FCB);
|
||||||
|
|
||||||
ExDeleteResourceLite(&Fcb->MainResource);
|
ExDeleteResourceLite(&Fcb->MainResource);
|
||||||
|
|
||||||
|
RemoveEntryList(&(Fcb->FcbListEntry));
|
||||||
|
|
||||||
ExFreePool(Fcb);
|
ExFreePool(Fcb);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue