]> wimlib.net Git - wimlib/blobdiff - src/ntfs-apply.c
Add Windows implementations of pread(), pwrite(), writev()
[wimlib] / src / ntfs-apply.c
index b9f6bf299a640d965fdb1aee54a889b49836ba0c..35760400bc9530463e0227589071a6667eeb6a66 100644 (file)
@@ -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;
@@ -375,7 +375,7 @@ apply_reparse_data(ntfs_inode *ni, struct wim_dentry *dentry,
        p = put_u16(p, wim_resource_size(lte)); /* ReparseDataLength */
        p = put_u16(p, 0); /* Reserved */
 
-       ret = read_full_resource_into_buf(lte, p, false);
+       ret = read_full_resource_into_buf(lte, p);
        if (ret)
                return ret;