From da0912f8a92b84a69e549e2ee1d837329603a087 Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Sat, 5 Nov 2016 17:57:46 +0300 Subject: [PATCH] Fix. Request only read rights on test. --- test/test_5_1_5.lua | 4 ++-- 1 file 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