Migration to iso_file_src in file writing function.

This commit is contained in:
Vreixo Formoso Lopes
2007-09-26 07:47:45 +00:00
parent 8de9d35873
commit f811234b8f
8 changed files with 246 additions and 74 deletions

View File

@@ -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;