6.2 fix to load_foreign atom.

This commit is contained in:
Vitor Santos Costa
2012-06-11 22:11:30 +01:00
parent c6ececc21a
commit f6de18cb09
4 changed files with 7 additions and 5 deletions

View File

@@ -994,8 +994,9 @@ RestoreForeignCode__( USES_REGS1 )
libs->name = AtomAdjust(libs->name);
libs = libs->next;
}
if (f_code->f != NULL)
f_code->f = (char *)AddrAdjust((ADDR)f_code->f);
if (f_code->f != NULL) {
f_code->f = AtomAdjust(f_code->f);
}
if (f_code->next != NULL)
f_code->next = (ForeignObj *)AddrAdjust((ADDR)f_code->next);
f_code = f_code->next;