aboutsummaryrefslogtreecommitdiff
path: root/common/file.cpp
diff options
context:
space:
mode:
authorTravis Howell2002-11-02 10:51:32 +0000
committerTravis Howell2002-11-02 10:51:32 +0000
commite03be389de0bcbfe58e0c4a80eeaa93b9e21cb45 (patch)
tree2b5d632f6345829a661b0a2a79ee37b212367db0 /common/file.cpp
parent099bf6cabaa0b99e51057d2e3b561b2b7106831c (diff)
downloadscummvm-rg350-e03be389de0bcbfe58e0c4a80eeaa93b9e21cb45.tar.gz
scummvm-rg350-e03be389de0bcbfe58e0c4a80eeaa93b9e21cb45.tar.bz2
scummvm-rg350-e03be389de0bcbfe58e0c4a80eeaa93b9e21cb45.zip
Added simon sound bugfix, patch #632518
Added fix for simon sound-related crash, patch #632517 svn-id: r5377
Diffstat (limited to 'common/file.cpp')
-rw-r--r--common/file.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/file.cpp b/common/file.cpp
index 7fa6ec39f7..6b9e3fd3da 100644
--- a/common/file.cpp
+++ b/common/file.cpp
@@ -99,6 +99,9 @@ bool File::open(const char *filename, const char *directory, int mode, byte encb
return false;
}
+ if (filename == NULL || *filename == 0)
+ return false;
+
clearIOFailed();
if (mode == kFileReadMode) {