mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[NTFS]
Add a sanity check in NtfsFindMftRecord() svn path=/trunk/; revision=65301
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user