Use sizeof(MFT_RECORD) instead of sizeof(MFT_RECORD) + 6 as MFT_RECORD now

includes the NTFS 3.1+ specific fields.

(Logical change 1.333)
edge.strict_endians
cantab.net!aia21 2004-03-15 11:34:30 +00:00
parent c6dbf75a46
commit cf419787bd
1 changed files with 1 additions and 2 deletions

View File

@ -693,8 +693,7 @@ static void wipe_unused_mft(ntfs_inode *ni)
if (ni->mft_no <= LAST_METADATA_INODE)
return;
/* MFT_RECORD doesn't have the XP specific 6 bytes, so add it */
unused = m->bytes_in_use - (sizeof(MFT_RECORD) + 6);
unused = m->bytes_in_use - sizeof(MFT_RECORD);
wiped_unused_mft += wipe_data((char *)m, sizeof(MFT_RECORD), unused);
}