]> wimlib.net Git - wimlib/blobdiff - src/reparse.c
Split wim_resource_spec from wim_lookup_table_entry
[wimlib] / src / reparse.c
index 1cbca56f146610f966df66a458346966e3c2c4a4..cbb3a08c11aaae2b3fc115cfa51c2cd102df3117 100644 (file)
@@ -292,11 +292,11 @@ wim_inode_get_reparse_data(const struct wim_inode * restrict inode,
                lte = lte_override;
        }
 
-       if (wim_resource_size(lte) > REPARSE_POINT_MAX_SIZE - 8) {
+       if (lte->size > REPARSE_POINT_MAX_SIZE - 8) {
                ERROR("Reparse data is too long!");
                return WIMLIB_ERR_INVALID_REPARSE_DATA;
        }
-       rpdatalen = wim_resource_size(lte);
+       rpdatalen = lte->size;
 
        /* Read the data from the WIM file */
        ret = read_full_resource_into_buf(lte, rpbuf + 8);