diff options
author | Alexey Melnichuk <alexeymelnichuck@gmail.com> | 2016-11-05 17:57:46 +0300 |
---|---|---|
committer | Alexey Melnichuk <alexeymelnichuck@gmail.com> | 2016-11-05 17:57:46 +0300 |
commit | da0912f8a92b84a69e549e2ee1d837329603a087 (patch) | |
tree | 95ad62ca24e8bf2f505e5baff9d54e4b4f859362 | |
parent | 07221a6e2eb9ef08eaee026a7c132b15204413ab (diff) |
Fix. Request only read rights on test.
-rw-r--r-- | test/test_5_1_5.lua | 4 |
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
|