aboutsummaryrefslogtreecommitdiffhomepage
path: root/core
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2013-11-20 22:14:18 -0500
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2013-11-20 22:14:18 -0500
commitd982def4a48569dbe16ef1303ec208ecd24a1af9 (patch)
tree95f78dce0b0795894782117f4b707544d6c7c6dc /core
parent408d71259bbd5bad7f1aa9a232904038f623598b (diff)
Fixed `os.execute()` return values in experimental winapi; core/file_io.lua
Diffstat (limited to 'core')
-rw-r--r--core/file_io.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/file_io.lua b/core/file_io.lua
index cbd1bed9..cf877a37 100644
--- a/core/file_io.lua
+++ b/core/file_io.lua
@@ -440,6 +440,6 @@ if WIN32 then
end
os.execute = function(prog)
local code = winapi.execute(prog)
- if code then return true, 'exit', code end
+ if code then return code == 0 and true or nil, 'exit', code end
end
end