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

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/branches/OpenSceneGraph-3.4@15068 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2015-08-08 08:49:53 +00:00
parent 5c40e9bf81
commit 559da06ffa

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() );
}