From Glenn Waldron, fix error in ZIP plugin handling of memory buffer

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/branches/OpenSceneGraph-3.2@15066 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2015-08-08 08:49:33 +00:00
parent 32366f0489
commit 6fa7dd27f3

View File

@@ -641,7 +641,7 @@ ZipArchive::getDataNoLock() const
{
data._zipHandle = OpenZip( _filename.c_str(), _password.c_str() );
}
else if ( _membuffer.empty() )
else if ( !_membuffer.empty() )
{
data._zipHandle = OpenZip( (void*)_membuffer.c_str(), _membuffer.length(), _password.c_str() );
}