Add a sanity check in NtfsFindMftRecord()

svn path=/trunk/; revision=65301
This commit is contained in:
Pierre Schweitzer 2014-11-06 20:54:27 +00:00
parent 3e9aa4c71d
commit c24acbfdc2

View file

@ -492,7 +492,6 @@ NtfsFindMftRecord(PDEVICE_EXTENSION Vcb,
ULONGLONG *OutMFTIndex)
{
PFILE_RECORD_HEADER MftRecord;
//ULONG Magic;
PNTFS_ATTR_CONTEXT IndexRootCtx;
PNTFS_ATTR_CONTEXT IndexBitmapCtx;
PNTFS_ATTR_CONTEXT IndexAllocationCtx;
@ -520,7 +519,7 @@ NtfsFindMftRecord(PDEVICE_EXTENSION Vcb,
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);
if (!NT_SUCCESS(Status))