memcpy(new->attached_buffer, old->attached_buffer,
wim_resource_size(old));
break;
+#ifdef WITH_NTFS_3G
case RESOURCE_IN_NTFS_VOLUME:
if (old->ntfs_loc) {
struct ntfs_location *loc;
loc->stream_name_utf16_num_chars * 2);
}
break;
+#endif
+ default:
+ break;
}
return new;
out_free:
void lte_decrement_refcnt(struct lookup_table_entry *lte,
struct lookup_table *table)
{
- wimlib_assert(lte);
- wimlib_assert(lte->refcnt);
+ wimlib_assert(lte != NULL);
+ wimlib_assert(lte->refcnt != 0);
if (--lte->refcnt == 0) {
lookup_table_unlink(table, lte);
#ifdef WITH_FUSE
}
#ifdef WITH_FUSE
-void lte_decrement_num_opened_fds(struct lookup_table_entry *lte,
- struct lookup_table *table)
+void lte_decrement_num_opened_fds(struct lookup_table_entry *lte)
{
- wimlib_assert(lte);
- wimlib_assert(lte->num_opened_fds);
- if (--lte->num_opened_fds == 0 && lte->refcnt == 0)
+ wimlib_assert(lte != NULL);
+ wimlib_assert(lte->num_opened_fds != 0);
+ if (atomic_dec(<e->num_opened_fds) == 0 && lte->refcnt == 0)
finalize_lte(lte);
}
#endif