diff options
author | Mike Pall <mike> | 2011-01-23 14:28:01 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-01-23 14:28:01 +0100 |
commit | ef3b209127237cb49b66d7c88ffcc7f6bf27973f (patch) | |
tree | 476c954289a90fca42625075f49bdccd7978b5a8 /src | |
parent | 72b3fff72f6bb9cf5796bbcd50e9a490d4e02b4b (diff) | |
download | luajit-ef3b209127237cb49b66d7c88ffcc7f6bf27973f.tar.gz luajit-ef3b209127237cb49b66d7c88ffcc7f6bf27973f.tar.bz2 luajit-ef3b209127237cb49b66d7c88ffcc7f6bf27973f.zip |
FFI: Fix ffi.load() error message on Windows.
Diffstat (limited to 'src')
-rw-r--r-- | src/lj_clib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_clib.c b/src/lj_clib.c index 4b3529af..4a81bb7d 100644 --- a/src/lj_clib.c +++ b/src/lj_clib.c | |||
@@ -139,7 +139,7 @@ static const char *clib_extname(lua_State *L, const char *name) | |||
139 | static void *clib_loadlib(lua_State *L, const char *name, int global) | 139 | static void *clib_loadlib(lua_State *L, const char *name, int global) |
140 | { | 140 | { |
141 | void *h = (void *)LoadLibraryA(clib_extname(L, name)); | 141 | void *h = (void *)LoadLibraryA(clib_extname(L, name)); |
142 | if (!h) clib_error(L, "cannot load module " LUA_QS ": %s", strdata(name)); | 142 | if (!h) clib_error(L, "cannot load module " LUA_QS ": %s", name); |
143 | UNUSED(global); | 143 | UNUSED(global); |
144 | return h; | 144 | return h; |
145 | } | 145 | } |