From 6d95761d050b0ada79566f42fed6e104614fe7ff Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sun, 10 Jan 2016 18:26:27 +0000 Subject: MirLua: winapi removed duplicated registry management functions git-svn-id: http://svn.miranda-ng.org/main/trunk@16080 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/Modules/WinAPI/src/winapi.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins') diff --git a/plugins/MirLua/Modules/WinAPI/src/winapi.cpp b/plugins/MirLua/Modules/WinAPI/src/winapi.cpp index c964dc9380..82d5a9d5f3 100644 --- a/plugins/MirLua/Modules/WinAPI/src/winapi.cpp +++ b/plugins/MirLua/Modules/WinAPI/src/winapi.cpp @@ -197,7 +197,7 @@ static int lua_DeleteIniValue(lua_State *L) static int lua_GetRegValue(lua_State *L) { - HKEY hRootKey = (HKEY)lua_touserdata(L, 1); + HKEY hRootKey = (HKEY)luaL_checkinteger(L, 1); ptrT path(mir_utf8decodeT(luaL_checkstring(L, 2))); ptrT valueName(mir_utf8decodeT(luaL_checkstring(L, 3))); @@ -258,7 +258,7 @@ static int lua_GetRegValue(lua_State *L) static int lua_SetRegValue(lua_State *L) { - HKEY hRootKey = (HKEY)lua_touserdata(L, 1); + HKEY hRootKey = (HKEY)luaL_checkinteger(L, 1); ptrT path(mir_utf8decodeT(luaL_checkstring(L, 2))); ptrT valueName(mir_utf8decodeT(luaL_checkstring(L, 3))); @@ -314,7 +314,7 @@ static int lua_SetRegValue(lua_State *L) static int lua_DeleteRegValue(lua_State *L) { - HKEY hRootKey = (HKEY)lua_touserdata(L, 1); + HKEY hRootKey = (HKEY)luaL_checkinteger(L, 1); ptrT path(mir_utf8decodeT(luaL_checkstring(L, 2))); ptrT valueName(mir_utf8decodeT(luaL_checkstring(L, 3))); @@ -1883,9 +1883,9 @@ static luaL_Reg winApi[] = { "SetIniValue", lua_SetIniValue }, { "DeleteIniValue", lua_DeleteIniValue }, - { "GetRegValue", lua_GetRegValue }, - { "SetRegValue", lua_SetRegValue }, - { "DeleteRegValue", lua_DeleteRegValue }, + //{ "GetRegValue", lua_GetRegValue }, + //{ "SetRegValue", lua_SetRegValue }, + //{ "DeleteRegValue", lua_DeleteRegValue }, { "FindWindow", global_FindWindow }, { "FindWindowEx", global_FindWindowEx }, -- cgit v1.2.3