* resource. */
struct wim_lookup_table_entry *prev_entry = NULL;
- if (back_to_back_pack) {
+ if (back_to_back_pack &&
+ !list_empty(&cur_rspec->stream_list))
+ {
prev_entry = list_entry(cur_rspec->stream_list.prev,
struct wim_lookup_table_entry,
rspec_node);
goto out_free_buf;
out_free_cur_entry:
- FREE(cur_entry);
+ free_lookup_table_entry(cur_entry);
out_free_lookup_table:
free_lookup_table(table);
out_free_buf:
}
}
- dentry = get_dentry(wim, path);
+ dentry = get_dentry(wim, path, WIMLIB_CASE_SENSITIVE);
if (p)
*p = T(':');
if (!dentry)