ntfs_attr_find_in_attrdef: log all errors

master
szaka 2007-07-16 20:36:21 +00:00
parent ea53c7b5fc
commit 7444b30fc4
1 changed files with 2 additions and 1 deletions

View File

@ -2319,6 +2319,7 @@ ATTR_DEF *ntfs_attr_find_in_attrdef(const ntfs_volume *vol,
if (!vol || !vol->attrdef || !type) {
errno = EINVAL;
ntfs_log_perror("%s: type=%d", __FUNCTION__, type);
return NULL;
}
for (ad = vol->attrdef; (u8*)ad - (u8*)vol->attrdef <
@ -2332,8 +2333,8 @@ ATTR_DEF *ntfs_attr_find_in_attrdef(const ntfs_volume *vol,
/* We have gone too far already. No point in continuing. */
break;
}
/* Attribute not found?!? */
errno = ENOENT;
ntfs_log_perror("%s: type=%d", __FUNCTION__, type);
return NULL;
}