Migration to iso_file_src in file writing function.
This commit is contained in:
@@ -36,7 +36,16 @@ create_node(struct ecma119_write_target *t,
|
||||
struct iso_file *file;
|
||||
file = iso_file_table_lookup(t->file_table, iso_f);
|
||||
if ( file == NULL ) {
|
||||
file = iso_file_new(iso_f);
|
||||
file = iso_file_new(t, iso_f);
|
||||
if (!file) {
|
||||
/*
|
||||
* That was an error.
|
||||
* TODO currently this cause the file to be ignored... Maybe
|
||||
* throw an error is a better alternative
|
||||
*/
|
||||
joliet_tree_free(ret);
|
||||
return NULL;
|
||||
}
|
||||
iso_file_table_add_file(t->file_table, file);
|
||||
}
|
||||
ret->info.file = file;
|
||||
|
Reference in New Issue
Block a user