fix bug in ntfs_attr_make_non_resident

(Logical change 1.605)
edge.strict_endians
(none)!yura 2004-10-11 19:19:58 +00:00
parent 1adc469856
commit 48ab100d94
1 changed files with 1 additions and 1 deletions

View File

@ -3066,7 +3066,7 @@ static int ntfs_attr_make_non_resident(ntfs_attr *na,
}
/* Calculate new offsets for the name and the mapping pairs array. */
name_ofs = (sizeof(ATTR_REC) - sizeof(a->compressed_size) + 7) & ~7;
mp_ofs = (name_ofs + a->name_length + 7) & ~7;
mp_ofs = (name_ofs + a->name_length * sizeof(ntfschar) + 7) & ~7;
/*
* Determine the size of the resident part of the non-resident
* attribute record. (Not compressed thus no compressed_size element