Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/lua-winreg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Melnichuk <alexeymelnichuck@gmail.com>2016-11-05 17:57:46 +0300
committerAlexey Melnichuk <alexeymelnichuck@gmail.com>2016-11-05 17:57:46 +0300
commitda0912f8a92b84a69e549e2ee1d837329603a087 (patch)
tree95ad62ca24e8bf2f505e5baff9d54e4b4f859362
parent07221a6e2eb9ef08eaee026a7c132b15204413ab (diff)
Fix. Request only read rights on test.
-rw-r--r--test/test_5_1_5.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_5_1_5.lua b/test/test_5_1_5.lua
index 4af3188..4c23888 100644
--- a/test/test_5_1_5.lua
+++ b/test/test_5_1_5.lua
@@ -1,8 +1,8 @@
local winreg = require"winreg"
-- Enumerate Application paths
rkey = [[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths]]
-hkey = winreg.openkey(rkey)
+hkey = winreg.openkey(rkey, 'r')
for k in hkey:enumkey() do
- print(k,(hkey:openkey(k):getvalue()))
+ print(k,(hkey:openkey(k, 'r'):getvalue()))
collectgarbage()
end