Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/Common/MemBlocks.cpp')
-rwxr-xr-xCPP/7zip/Common/MemBlocks.cpp7
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;
}