Bug fix: HFS+ directories could announce more children than they actually have.
This commit is contained in:
parent
17e8cb6697
commit
97eec6162c
@ -405,6 +405,7 @@ int create_tree(Ecma119Image *t, IsoNode *iso, uint32_t parent_id)
|
|||||||
if (cret < 0)
|
if (cret < 0)
|
||||||
return cret;
|
return cret;
|
||||||
pos = pos->next;
|
pos = pos->next;
|
||||||
|
if (cret > 0)
|
||||||
t->hfsp_leafs[cleaf].nchildren++;
|
t->hfsp_leafs[cleaf].nchildren++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1667,6 +1668,7 @@ int hfsplus_writer_create(Ecma119Image *target)
|
|||||||
goto ex;
|
goto ex;
|
||||||
}
|
}
|
||||||
pos = pos->next;
|
pos = pos->next;
|
||||||
|
if (cret > 0)
|
||||||
target->hfsp_leafs[0].nchildren++;
|
target->hfsp_leafs[0].nchildren++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user