- struct SECURITY_CONTEXT ctx;
- memset(&ctx, 0, sizeof(ctx));
- ctx.vol = vol;
- ret = ntfs_xattr_system_getxattr(&ctx, XATTR_NTFS_ATTRIB,
- ni, dir_ni, (char *)&attributes,
- sizeof(u32));
- if (ret != 4) {
- ERROR_WITH_ERRNO("Failed to get NTFS attributes from `%s'",
- path);
- return WIMLIB_ERR_NTFS_3G;
+ ret = ntfs_get_ntfs_attrib(ni, (char*)&attributes, sizeof(attributes));
+ if (ret != sizeof(attributes)) {
+ ERROR_WITH_ERRNO("Failed to get NTFS attributes from \"%s\"", path);
+ ret = WIMLIB_ERR_NTFS_3G;
+ goto out;