From: Pierre Schweitzer Date: Thu, 6 Nov 2014 21:12:54 +0000 (+0000) Subject: [NTFS] X-Git-Tag: backups/tcpip_revolution@71025~68 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=fad60e6ee82104e38948f3f9911ce2558d5523ec [NTFS] MagicValues--; svn path=/trunk/; revision=65302 --- diff --git a/reactos/drivers/filesystems/ntfs/mft.c b/reactos/drivers/filesystems/ntfs/mft.c index 8851a4d04aa..3e83fe8efaa 100644 --- a/reactos/drivers/filesystems/ntfs/mft.c +++ b/reactos/drivers/filesystems/ntfs/mft.c @@ -629,7 +629,7 @@ NtfsFindMftRecord(PDEVICE_EXTENSION Vcb, } IndexBuffer = (PINDEX_BUFFER)IndexRecord; - ASSERT(IndexBuffer->Ntfs.Type == 'XDNI'); + ASSERT(IndexBuffer->Ntfs.Type == NRH_INDX_TYPE); ASSERT(IndexBuffer->Header.AllocatedSize + 0x18 == IndexBlockSize); IndexEntry = (PINDEX_ENTRY_ATTRIBUTE)((ULONG_PTR)&IndexBuffer->Header + IndexBuffer->Header.FirstEntryOffset); IndexEntryEnd = (PINDEX_ENTRY_ATTRIBUTE)((ULONG_PTR)&IndexBuffer->Header + IndexBuffer->Header.TotalSizeOfEntries); diff --git a/reactos/drivers/filesystems/ntfs/ntfs.h b/reactos/drivers/filesystems/ntfs/ntfs.h index 573b6ca186f..39db578fe63 100644 --- a/reactos/drivers/filesystems/ntfs/ntfs.h +++ b/reactos/drivers/filesystems/ntfs/ntfs.h @@ -208,6 +208,7 @@ typedef struct /* NTFS_RECORD_HEADER.Type */ #define NRH_FILE_TYPE 0x454C4946 /* 'FILE' */ +#define NRH_INDX_TYPE 0x58444E49 /* 'INDX' */ typedef struct _FILE_RECORD_HEADER