summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/tools/find_vsjitdebugger.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/detect/tools/find_vsjitdebugger.lua')
-rw-r--r--xmake/modules/detect/tools/find_vsjitdebugger.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/find_vsjitdebugger.lua b/xmake/modules/detect/tools/find_vsjitdebugger.lua
index 2025557e0..aaf7fcf9d 100644
--- a/xmake/modules/detect/tools/find_vsjitdebugger.lua
+++ b/xmake/modules/detect/tools/find_vsjitdebugger.lua
@@ -45,7 +45,7 @@ function main(opt)
-- init options
opt = opt or {}
- opt.pathes = opt.pathes or function ()
+ opt.paths = opt.paths or function ()
for _, reg in ipairs({"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AeDebug;Debugger", "HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows NT\\CurrentVersion\\AeDebug;Debugger"}) do
return (val("reg " .. reg) or ""):match("\"(.-)\"")
end