mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:03:00 +00:00
[NTFS] When reading $I30 attribute fails, stop the rename operation.
This makes the function return the error instead of continuing and performing use-after-frees operations. This is likely to be a forgotten return! CID 1434254, 1434268
This commit is contained in:
parent
1551d2b136
commit
c7bba39afc
1 changed files with 1 additions and 0 deletions
|
@ -1662,6 +1662,7 @@ UpdateFileNameRecord(PDEVICE_EXTENSION Vcb,
|
||||||
ExFreePoolWithTag(IndexRecord, TAG_NTFS);
|
ExFreePoolWithTag(IndexRecord, TAG_NTFS);
|
||||||
ReleaseAttributeContext(IndexRootCtx);
|
ReleaseAttributeContext(IndexRootCtx);
|
||||||
ExFreeToNPagedLookasideList(&Vcb->FileRecLookasideList, MftRecord);
|
ExFreeToNPagedLookasideList(&Vcb->FileRecLookasideList, MftRecord);
|
||||||
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
IndexRoot = (PINDEX_ROOT_ATTRIBUTE)IndexRecord;
|
IndexRoot = (PINDEX_ROOT_ATTRIBUTE)IndexRecord;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue