mirror of
https://github.com/reactos/reactos.git
synced 2026-05-26 10:53:56 +08:00
[NTFS] Rewrite ReleaseAttributeContext() so that its null checks are consistent
CID 1427067
This commit is contained in:
@@ -105,13 +105,15 @@ PrepareAttributeContext(PNTFS_ATTR_RECORD AttrRecord)
|
||||
VOID
|
||||
ReleaseAttributeContext(PNTFS_ATTR_CONTEXT Context)
|
||||
{
|
||||
if (Context->pRecord->IsNonResident)
|
||||
if (Context->pRecord)
|
||||
{
|
||||
FsRtlUninitializeLargeMcb(&Context->DataRunsMCB);
|
||||
}
|
||||
if (Context->pRecord->IsNonResident)
|
||||
{
|
||||
FsRtlUninitializeLargeMcb(&Context->DataRunsMCB);
|
||||
}
|
||||
|
||||
if(Context->pRecord)
|
||||
ExFreePoolWithTag(Context->pRecord, TAG_NTFS);
|
||||
}
|
||||
|
||||
ExFreePoolWithTag(Context, TAG_NTFS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user