mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-12 17:24:09 +00:00
FFI: Fix ffi.load() error message on Windows.
This commit is contained in:
parent
72b3fff72f
commit
ef3b209127
@ -139,7 +139,7 @@ static const char *clib_extname(lua_State *L, const char *name)
|
|||||||
static void *clib_loadlib(lua_State *L, const char *name, int global)
|
static void *clib_loadlib(lua_State *L, const char *name, int global)
|
||||||
{
|
{
|
||||||
void *h = (void *)LoadLibraryA(clib_extname(L, name));
|
void *h = (void *)LoadLibraryA(clib_extname(L, name));
|
||||||
if (!h) clib_error(L, "cannot load module " LUA_QS ": %s", strdata(name));
|
if (!h) clib_error(L, "cannot load module " LUA_QS ": %s", name);
|
||||||
UNUSED(global);
|
UNUSED(global);
|
||||||
return h;
|
return h;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user