aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorFilippos Karapetis2008-06-08 02:02:06 +0000
committerFilippos Karapetis2008-06-08 02:02:06 +0000
commitb050430b41109d9ce9fabd3f1d98ad5dc4f54474 (patch)
tree0fc0a6eb03dec951acb37fda588874cc556a5120 /common
parentee1dfa3f3d75fbf28453b6cb3f55166ce88dbe2b (diff)
downloadscummvm-rg350-b050430b41109d9ce9fabd3f1d98ad5dc4f54474.tar.gz
scummvm-rg350-b050430b41109d9ce9fabd3f1d98ad5dc4f54474.tar.bz2
scummvm-rg350-b050430b41109d9ce9fabd3f1d98ad5dc4f54474.zip
Don't attempt to close the arj file if it hasn't been opened
svn-id: r32608
Diffstat (limited to 'common')
-rw-r--r--common/unarj.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/unarj.cpp b/common/unarj.cpp
index 942e659caa..f3ac20c285 100644
--- a/common/unarj.cpp
+++ b/common/unarj.cpp
@@ -289,6 +289,9 @@ bool ArjFile::open(const Common::String &filename, AccessMode mode) {
}
void ArjFile::close() {
+ if (!_isOpen)
+ return;
+
_isOpen = false;
if (_fallBack) {