summaryrefslogtreecommitdiff
path: root/xmake/core/base
diff options
context:
space:
mode:
authorruki <[email protected]>2017-06-01 11:23:19 +0800
committerruki <[email protected]>2017-06-01 11:23:19 +0800
commit2743cb2ee2b2640bbb22aa39d63c134563949a05 (patch)
tree937f1ac22b73da7bb6149bdb99671e80074dc879 /xmake/core/base
parent95a3f4499e5fb575613b4192519a53d323a7a19c (diff)
improve find program, file and path modules
Diffstat (limited to 'xmake/core/base')
-rw-r--r--xmake/core/base/filter.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/base/filter.lua b/xmake/core/base/filter.lua
index b84c5f8e6..27442cf7c 100644
--- a/xmake/core/base/filter.lua
+++ b/xmake/core/base/filter.lua
@@ -87,7 +87,7 @@ function filter.reg(path)
end
-- query registry value
- return (winreg.query(regpath))
+ return (winreg.query(path))
end
-- register handler
@@ -110,7 +110,7 @@ function filter:get(variable, handler)
elseif variable:startswith("env ") then
return filter.env(variable:sub(5))
elseif variable:startswith("reg ") then
- return filter:reg(variable:sub(5))
+ return filter.reg(variable:sub(5))
end
-- parse variable:mode