diff options
author | Matthew Hoops | 2009-02-19 00:59:34 +0000 |
---|---|---|
committer | Matthew Hoops | 2009-02-19 00:59:34 +0000 |
commit | 5778350053e96859844f5998a06056e890da40c1 (patch) | |
tree | 4fbe0edbabc9c5ace50097b4ca0b2bdc4b292ace /engines/sci/scicore/versions.cpp | |
parent | e7ee119603a6f2ca6a7893d145cc973b6cba637b (diff) | |
download | scummvm-rg350-5778350053e96859844f5998a06056e890da40c1.tar.gz scummvm-rg350-5778350053e96859844f5998a06056e890da40c1.tar.bz2 scummvm-rg350-5778350053e96859844f5998a06056e890da40c1.zip |
scan_file returns 1 if there's a failure, not 0; correct version_detect_from_executable to use that properly
svn-id: r38528
Diffstat (limited to 'engines/sci/scicore/versions.cpp')
-rw-r--r-- | engines/sci/scicore/versions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/scicore/versions.cpp b/engines/sci/scicore/versions.cpp index 83ad3ddaa5..6680fcb430 100644 --- a/engines/sci/scicore/versions.cpp +++ b/engines/sci/scicore/versions.cpp @@ -269,7 +269,7 @@ version_detect_from_executable(char *filename) { int result; if (mac ? is_mac_exe(filename) : is_exe(filename)) { - if (scan_file(filename, &result)) { + if (scan_file(filename, &result) == 0) { return result; } } |