summaryrefslogtreecommitdiff
path: root/plugins/MirLua/Modules
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2016-01-10 18:26:27 +0000
committerAlexander Lantsev <aunsane@gmail.com>2016-01-10 18:26:27 +0000
commit6d95761d050b0ada79566f42fed6e104614fe7ff (patch)
tree593471f50bc34edcdd4867641b25f9e7e648e8f3 /plugins/MirLua/Modules
parentcb83ead08a45ca4b4156fd2b196e45cbd713d84d (diff)
MirLua: winapi removed duplicated registry management functions
git-svn-id: http://svn.miranda-ng.org/main/trunk@16080 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/Modules')
-rw-r--r--plugins/MirLua/Modules/WinAPI/src/winapi.cpp12
1 files changed, 6 insertions, 6 deletions
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 },