mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +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)
|
||||
{
|
||||
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))
|
||||
|
|
Loading…
Reference in a new issue