FFI: Fix ffi.load() error message on Windows.

This commit is contained in:
Mike Pall 2011-01-23 14:28:01 +01:00
parent 72b3fff72f
commit ef3b209127

View File

@ -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;
}