[NTFS] - Add some minor fixes and improvements:

Improve, add, or fix some DPRINTs. In particular, ULONG's should use %lu, not %u. Also, don't be silent about filesystem corruption.
NtfsFindMftRecord() - move CaseSensitive parameter before output parameter in parameter list.

svn path=/branches/GSoC_2016/NTFS/; revision=75199
This commit is contained in:
Trevor Thompson 2017-06-26 05:17:08 +00:00 committed by Thomas Faber
parent e4aab26781
commit 38c947b7ab
5 changed files with 50 additions and 22 deletions

View file

@ -188,8 +188,8 @@ AddFileName(PFILE_RECORD_HEADER FileRecord,
&Current,
&FirstEntry,
FALSE,
&CurrentMFTIndex,
CaseSensitive);
CaseSensitive,
&CurrentMFTIndex);
if (!NT_SUCCESS(Status))
break;
@ -1173,7 +1173,7 @@ NtfsDumpIndexRootAttribute(PNTFS_ATTR_RECORD Attribute)
while (currentOffset < IndexRootAttr->Header.TotalSizeOfEntries)
{
PINDEX_ENTRY_ATTRIBUTE currentIndexExtry = (PINDEX_ENTRY_ATTRIBUTE)((ULONG_PTR)IndexRootAttr + 0x10 + currentOffset);
DbgPrint(" Index Node Entry %u", currentNode++);
DbgPrint(" Index Node Entry %lu", currentNode++);
if (currentIndexExtry->Flags & NTFS_INDEX_ENTRY_NODE)
DbgPrint(" (Branch)");
else