aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMatthew Hoops2009-02-19 00:59:34 +0000
committerMatthew Hoops2009-02-19 00:59:34 +0000
commit5778350053e96859844f5998a06056e890da40c1 (patch)
tree4fbe0edbabc9c5ace50097b4ca0b2bdc4b292ace /engines
parente7ee119603a6f2ca6a7893d145cc973b6cba637b (diff)
downloadscummvm-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')
-rw-r--r--engines/sci/scicore/versions.cpp2
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;
}
}