-1 -> Z_ERRNO for clarity
Change-Id: I29aa8531646f416a72b89f7571b757c39705c31a
This commit is contained in:
@@ -153,7 +153,7 @@ long ZCodec::Decompress( SvStream& rIStm, SvStream& rOStm )
|
|||||||
UpdateCRC( mpInBuf, nInToRead );
|
UpdateCRC( mpInBuf, nInToRead );
|
||||||
|
|
||||||
}
|
}
|
||||||
err = mbStatus ? inflate(PZSTREAM, Z_NO_FLUSH) : -1;
|
err = mbStatus ? inflate(PZSTREAM, Z_NO_FLUSH) : Z_ERRNO;
|
||||||
if ( err < 0 )
|
if ( err < 0 )
|
||||||
{
|
{
|
||||||
mbStatus = false;
|
mbStatus = false;
|
||||||
@@ -220,7 +220,7 @@ long ZCodec::Read( SvStream& rIStm, sal_uInt8* pData, sal_uIntPtr nSize )
|
|||||||
UpdateCRC( mpInBuf, nInToRead );
|
UpdateCRC( mpInBuf, nInToRead );
|
||||||
|
|
||||||
}
|
}
|
||||||
err = mbStatus ? inflate(PZSTREAM, Z_NO_FLUSH) : -1;
|
err = mbStatus ? inflate(PZSTREAM, Z_NO_FLUSH) : Z_ERRNO;
|
||||||
if ( err < 0 )
|
if ( err < 0 )
|
||||||
{
|
{
|
||||||
// Accept Z_BUF_ERROR as EAGAIN or EWOULDBLOCK.
|
// Accept Z_BUF_ERROR as EAGAIN or EWOULDBLOCK.
|
||||||
@@ -273,7 +273,7 @@ long ZCodec::ReadAsynchron( SvStream& rIStm, sal_uInt8* pData, sal_uIntPtr nSize
|
|||||||
UpdateCRC( mpInBuf, nInToRead );
|
UpdateCRC( mpInBuf, nInToRead );
|
||||||
|
|
||||||
}
|
}
|
||||||
err = mbStatus ? inflate(PZSTREAM, Z_NO_FLUSH) : -1;
|
err = mbStatus ? inflate(PZSTREAM, Z_NO_FLUSH) : Z_ERRNO;
|
||||||
if ( err < 0 )
|
if ( err < 0 )
|
||||||
{
|
{
|
||||||
// Accept Z_BUF_ERROR as EAGAIN or EWOULDBLOCK.
|
// Accept Z_BUF_ERROR as EAGAIN or EWOULDBLOCK.
|
||||||
|
Reference in New Issue
Block a user