mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:03:00 +00:00
[NTFS]
Add a sanity check in NtfsFindMftRecord() svn path=/trunk/; revision=65301
This commit is contained in:
parent
3e9aa4c71d
commit
c24acbfdc2
1 changed files with 1 additions and 2 deletions
|
@ -492,7 +492,6 @@ NtfsFindMftRecord(PDEVICE_EXTENSION Vcb,
|
||||||
ULONGLONG *OutMFTIndex)
|
ULONGLONG *OutMFTIndex)
|
||||||
{
|
{
|
||||||
PFILE_RECORD_HEADER MftRecord;
|
PFILE_RECORD_HEADER MftRecord;
|
||||||
//ULONG Magic;
|
|
||||||
PNTFS_ATTR_CONTEXT IndexRootCtx;
|
PNTFS_ATTR_CONTEXT IndexRootCtx;
|
||||||
PNTFS_ATTR_CONTEXT IndexBitmapCtx;
|
PNTFS_ATTR_CONTEXT IndexBitmapCtx;
|
||||||
PNTFS_ATTR_CONTEXT IndexAllocationCtx;
|
PNTFS_ATTR_CONTEXT IndexAllocationCtx;
|
||||||
|
@ -520,7 +519,7 @@ NtfsFindMftRecord(PDEVICE_EXTENSION Vcb,
|
||||||
|
|
||||||
if (NT_SUCCESS(ReadFileRecord(Vcb, MFTIndex, MftRecord)))
|
if (NT_SUCCESS(ReadFileRecord(Vcb, MFTIndex, MftRecord)))
|
||||||
{
|
{
|
||||||
//Magic = MftRecord->Magic;
|
ASSERT(MftRecord->Ntfs.Type == NRH_FILE_TYPE);
|
||||||
|
|
||||||
Status = FindAttribute(Vcb, MftRecord, AttributeIndexRoot, L"$I30", 4, &IndexRootCtx);
|
Status = FindAttribute(Vcb, MftRecord, AttributeIndexRoot, L"$I30", 4, &IndexRootCtx);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue