util-src/windows.c
changeset 6414 6c8f6364bc48
parent 5864 22b1d18eb919
child 6415 0e94f89d0e62
--- a/util-src/windows.c	Thu Sep 11 00:55:51 2014 +0200
+++ b/util-src/windows.c	Tue Sep 16 21:56:18 2014 +0200
@@ -81,7 +81,8 @@
 };
 
 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);