diff --git a/src/osgPlugins/zip/ZipArchive.cpp b/src/osgPlugins/zip/ZipArchive.cpp index 9ff8c93f4..4a4eead7d 100644 --- a/src/osgPlugins/zip/ZipArchive.cpp +++ b/src/osgPlugins/zip/ZipArchive.cpp @@ -121,11 +121,11 @@ bool ZipArchive::open(const std::string& file, ArchiveStatus /*status*/, const o if ( !_zipLoaded ) // double-check avoids race condition { std::string ext = osgDB::getLowerCaseFileExtension(file); - if (!acceptsExtension(ext)) return osgDB::ReaderWriter::ReadResult::FILE_NOT_HANDLED; + if (!acceptsExtension(ext)) return false; // save the filename + password so other threads can open the file _filename = osgDB::findDataFile( file, options ); - if (_filename.empty()) return osgDB::ReaderWriter::ReadResult::FILE_NOT_FOUND; + if (_filename.empty()) return false; _password = ReadPassword(options);