diff options
Diffstat (limited to 'CPP/7zip/Common/MemBlocks.cpp')
-rwxr-xr-x | CPP/7zip/Common/MemBlocks.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/CPP/7zip/Common/MemBlocks.cpp b/CPP/7zip/Common/MemBlocks.cpp index 15702957..53f55242 100755 --- a/CPP/7zip/Common/MemBlocks.cpp +++ b/CPP/7zip/Common/MemBlocks.cpp @@ -125,13 +125,10 @@ HRESULT CMemBlocks::WriteToStream(size_t blockSize, ISequentialOutStream *outStr UInt32 curSize = (UInt32)blockSize; if (totalSize < curSize) curSize = (UInt32)totalSize; - UInt32 processedSize; if (blockIndex >= Blocks.Size()) return E_FAIL; - RINOK(WriteStream(outStream, Blocks[blockIndex], curSize, &processedSize)); - if (processedSize != curSize) - return E_FAIL; - totalSize -= processedSize; + RINOK(WriteStream(outStream, Blocks[blockIndex], curSize)); + totalSize -= curSize; } return S_OK; } |