mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 12:14:32 +00:00
[NTFS] Rewrite ReleaseAttributeContext() so that its null checks are consistent
CID 1427067
This commit is contained in:
parent
007d3d382a
commit
849fa7fbae
1 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue