diff options
Diffstat (limited to 'src/winreg.c')
-rw-r--r-- | src/winreg.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/winreg.c b/src/winreg.c index e7f8f35..e3aafb3 100644 --- a/src/winreg.c +++ b/src/winreg.c @@ -5,7 +5,9 @@ #include <assert.h>
#define lua_assert assert
-#include <tchar.h>
+#ifndef uintptr_t
+ typedef unsigned uintptr_t;
+#endif
#include <lua.h>
#include <lualib.h>
@@ -282,10 +284,10 @@ BOOL reg_aux_setvalue(lua_State *L, HKEY hKey, const TCHAR * pszVal, int type, i if(lua_istable(L, i)){
int n;
int last = luaL_getn(L, i);
- for (n = 1; n <= last; n++) { - lua_rawgeti(L, i, n); - luaL_addstring(&B, lua_checkstring(L, -1)); - luaL_addchar(&B, 0); + for (n = 1; n <= last; n++) {
+ lua_rawgeti(L, i, n);
+ luaL_addstring(&B, lua_checkstring(L, -1));
+ luaL_addchar(&B, 0);
}
}else{
luaL_checktype(L, i, LUA_TSTRING);
|