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 '7zip/Archive/7z/7zOut.cpp')
-rwxr-xr-x7zip/Archive/7z/7zOut.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/7zip/Archive/7z/7zOut.cpp b/7zip/Archive/7z/7zOut.cpp
index b2ba2db3..116cb0cc 100755
--- a/7zip/Archive/7z/7zOut.cpp
+++ b/7zip/Archive/7z/7zOut.cpp
@@ -11,10 +11,10 @@ static HRESULT WriteBytes(ISequentialOutStream *stream, const void *data, size_t
{
while (size > 0)
{
- UInt32 curSize = (UInt32)(MyMin(size, (size_t)0xFFFFFFFF));
+ UInt32 curSize = (UInt32)MyMin(size, (size_t)0xFFFFFFFF);
UInt32 processedSize;
- RINOK(stream->WritePart(data, curSize, &processedSize));
- if(processedSize == 0 || processedSize > curSize)
+ RINOK(stream->Write(data, curSize, &processedSize));
+ if(processedSize == 0)
return E_FAIL;
data = (const void *)((const Byte *)data + processedSize);
size -= processedSize;
@@ -111,7 +111,10 @@ HRESULT COutArchive::Create(ISequentialOutStream *stream, bool endMarker)
{
SeqStream.QueryInterface(IID_IOutStream, &Stream);
if (!Stream)
- endMarker = true;
+ {
+ return E_NOTIMPL;
+ // endMarker = true;
+ }
}
#ifdef _7Z_VOL
if (endMarker)