From e03be389de0bcbfe58e0c4a80eeaa93b9e21cb45 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sat, 2 Nov 2002 10:51:32 +0000 Subject: Added simon sound bugfix, patch #632518 Added fix for simon sound-related crash, patch #632517 svn-id: r5377 --- common/file.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common') 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) { -- cgit v1.2.3