Fix several bugs related to RR SL/NM fields (PT 2 :).

This commit is contained in:
Vreixo Formoso
2007-12-26 18:19:00 +01:00
parent 5f6b5fd930
commit ddd703e7c4
2 changed files with 14 additions and 9 deletions

View File

@ -417,7 +417,7 @@ int write_one_dir(Ecma119Image *t, Ecma119Node *dir)
/* compute len of directory entry */
fi_len = strlen(child->iso_name);
len = fi_len + 33 + (fi_len % 2 ? 0 : 1);
if (child->type == ECMA119_FILE && !t->omit_version_numbers) {
if (need_version_number(t, child)) {
len += 2;
}