Fixed return values

This commit is contained in:
Robert Osfield 2018-01-05 12:12:24 +00:00
parent 741db16916
commit 4abc97f44b

View File

@ -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);