Skip to content

Commit

Permalink
Fix. Request only read rights on test.
Browse files Browse the repository at this point in the history
  • Loading branch information
moteus committed Nov 5, 2016
1 parent 07221a6 commit da0912f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_5_1_5.lua
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit da0912f

Please sign in to comment.