Fix bug related with reading of images with reallocated dirs.

This commit is contained in:
Vreixo Formoso 2008-01-03 17:16:27 +01:00
parent b8e44a936a
commit 2f535abe85

View File

@ -331,7 +331,7 @@ int read_dir(ImageFileSourceData *data)
} }
/* add to the child list */ /* add to the child list */
{ if (ret != 0) {
struct child_list *node; struct child_list *node;
node = malloc(sizeof(struct child_list)); node = malloc(sizeof(struct child_list));
if (node == NULL) { if (node == NULL) {
@ -925,7 +925,7 @@ int iso_file_source_new_ifs(IsoImageFilesystem *fs, IsoFileSource *parent,
ret = iso_file_source_new_ifs(fs, parent, (struct ecma119_dir_record*) ret = iso_file_source_new_ifs(fs, parent, (struct ecma119_dir_record*)
buffer, src); buffer, src);
if (ret < 0) { if (ret <= 0) {
return ret; return ret;
} }