diff options
Diffstat (limited to 'util-src/windows.c')
-rw-r--r-- | util-src/windows.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util-src/windows.c b/util-src/windows.c index 3d14ca95..9b79c662 100644 --- a/util-src/windows.c +++ b/util-src/windows.c @@ -81,7 +81,8 @@ static const luaL_Reg Reg[] = }; LUALIB_API int luaopen_util_windows(lua_State *L) { - luaL_register(L, "windows", Reg); + lua_newtable(L); + luaL_register(L, NULL, Reg); lua_pushliteral(L, "version"); /** version */ lua_pushliteral(L, "-3.14"); lua_settable(L,-3); |