X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fntfs-apply.c;h=f794b4a225358ab7796f00e2a030acd7b4dc7b5f;hb=caa6d1f3c73c22a5a6425c215fce20eacec940e1;hp=b9f6bf299a640d965fdb1aee54a889b49836ba0c;hpb=5873df008e648b9646b07c7d4eeda511adf92e28;p=wimlib diff --git a/src/ntfs-apply.c b/src/ntfs-apply.c index b9f6bf29..f794b4a2 100644 --- a/src/ntfs-apply.c +++ b/src/ntfs-apply.c @@ -362,7 +362,7 @@ apply_reparse_data(ntfs_inode *ni, struct wim_dentry *dentry, /* "Reparse point data, including the tag and optional GUID, cannot * exceed 16 kilobytes." - MSDN */ - if (wim_resource_size(lte) > (16 * 1024 - 8)) { + if (wim_resource_size(lte) > REPARSE_POINT_MAX_SIZE - 8) { ERROR("Reparse data of `%s' is too long (%"PRIu64" bytes)", dentry->_full_path, wim_resource_size(lte)); return WIMLIB_ERR_INVALID_DENTRY;