From b050430b41109d9ce9fabd3f1d98ad5dc4f54474 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 8 Jun 2008 02:02:06 +0000 Subject: Don't attempt to close the arj file if it hasn't been opened svn-id: r32608 --- common/unarj.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common') 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) { -- cgit v1.2.3