tools/source/stream/strmunx.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit c6fa60bdffe46ae869ae77c2cee14146a72808f6 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Fri Nov 15 11:33:33 2024 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Nov 15 12:12:54 2024 +0100 consistently return -1 in SvFileStream::PutData for the error case Just for consistency with the other error cases in PutData/GetData Change-Id: Ib7fd27f9347021b3063e6eac88fd8038d5f218e0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176621 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/tools/source/stream/strmunx.cxx b/tools/source/stream/strmunx.cxx index 881d7a28c0af..28c548540aeb 100644 --- a/tools/source/stream/strmunx.cxx +++ b/tools/source/stream/strmunx.cxx @@ -243,7 +243,10 @@ std::size_t SvFileStream::PutData( const void* pData, std::size_t nSize ) return -1; } else if( !nWrite ) + { SetError( SVSTREAM_DISK_FULL ); + return -1; + } } return static_cast<std::size_t>(nWrite); }