one more fix

(Logical change 1.594)
edge.strict_endians
(none)!yura 2004-10-07 16:46:16 +00:00
parent 0f4bb99ea1
commit 94a479e005
1 changed files with 2 additions and 0 deletions

View File

@ -3810,6 +3810,7 @@ static int ntfs_non_resident_attr_shrink(ntfs_attr *na, const s64 newsize)
/* Get the first attribute record. */
ctx = ntfs_attr_get_search_ctx(na->ni, NULL);
if (!ctx) {
err = errno;
if ((na->allocated_size >> vol->cluster_size_bits)
!= first_free_vcn)
Dprintf("%s(): Coudn't get attribute search context. "
@ -3817,6 +3818,7 @@ static int ntfs_non_resident_attr_shrink(ntfs_attr *na, const s64 newsize)
else
Dprintf("%s(): Coudn't get attribute search context.\n",
__FUNCTION__);
errno = err;
return -1;
}
if (ntfs_attr_lookup(na->type, na->name, na->name_len, 0, 0, NULL, 0,