changed ffi.c to use moo_seterrwithsyserr()
This commit is contained in:
parent
1a3a681e8d
commit
0dcee7baac
@ -113,7 +113,7 @@ static moo_pfrc_t pf_open (moo_t* moo, moo_mod_t* mod, moo_ooi_t nargs)
|
|||||||
dc = dcNewCallVM (4096); /* TODO: right size? */
|
dc = dcNewCallVM (4096); /* TODO: right size? */
|
||||||
if (!dc)
|
if (!dc)
|
||||||
{
|
{
|
||||||
moo_seterrnum (moo, moo_syserr_to_errnum(errno));
|
moo_seterrwithsyserr (moo, 0, errno);
|
||||||
moo->vmprim.dl_close (moo, handle);
|
moo->vmprim.dl_close (moo, handle);
|
||||||
goto softfail;
|
goto softfail;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user