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
parent
c6dbf75a46
commit
cf419787bd
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue