From ef3b209127237cb49b66d7c88ffcc7f6bf27973f Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Sun, 23 Jan 2011 14:28:01 +0100 Subject: [PATCH] FFI: Fix ffi.load() error message on Windows. --- src/lj_clib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) static void *clib_loadlib(lua_State *L, const char *name, int global) { 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); return h; }