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:
@@ -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() );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user