diff options
author | Oliver Schneider <oliver@assarbad.net> | 2018-04-05 23:12:12 +0300 |
---|---|---|
committer | Oliver Schneider <oliver@assarbad.net> | 2018-04-05 23:12:12 +0300 |
commit | f57ac71db43c6218ee0e611751a3d345f02df902 (patch) | |
tree | f163b3e78ab1d04f2db89e23a077cd3677cde075 /3rdparty/lua/src/modules/lua-winreg/test/test_5_1_6.lua | |
parent | adf6cafdc6a8dcb2453ca1204912d796db1263d0 (diff) |
Going with the line endings of the upstream project instead
Diffstat (limited to '3rdparty/lua/src/modules/lua-winreg/test/test_5_1_6.lua')
-rw-r--r-- | 3rdparty/lua/src/modules/lua-winreg/test/test_5_1_6.lua | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/3rdparty/lua/src/modules/lua-winreg/test/test_5_1_6.lua b/3rdparty/lua/src/modules/lua-winreg/test/test_5_1_6.lua index c2e6263..615720f 100644 --- a/3rdparty/lua/src/modules/lua-winreg/test/test_5_1_6.lua +++ b/3rdparty/lua/src/modules/lua-winreg/test/test_5_1_6.lua @@ -1,20 +1,20 @@ -local winreg = require"winreg" --- Enumerate start up programs - -rkey = "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run" -hkey = winreg.openkey(rkey) - -print('\n'..rkey..":") -for name, kind in hkey:enumvalue() do - print("\nname: " .. name - .. "\ncommand: " .. hkey:getvalue(name)) -end - -rkey = "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce" -hkey = winreg.openkey(rkey) - -print('\n'..rkey..":") -for name, kind in hkey:enumvalue() do - print("\nname: " .. name - .. "\ncommand: " .. hkey:getvalue(name)) -end +local winreg = require"winreg"
+-- Enumerate start up programs
+
+rkey = "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"
+hkey = winreg.openkey(rkey)
+
+print('\n'..rkey..":")
+for name, kind in hkey:enumvalue() do
+ print("\nname: " .. name
+ .. "\ncommand: " .. hkey:getvalue(name))
+end
+
+rkey = "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce"
+hkey = winreg.openkey(rkey)
+
+print('\n'..rkey..":")
+for name, kind in hkey:enumvalue() do
+ print("\nname: " .. name
+ .. "\ncommand: " .. hkey:getvalue(name))
+end
|