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/Archive/GZip/GZipIn.cpp')
-rwxr-xr-xCPP/7zip/Archive/GZip/GZipIn.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/CPP/7zip/Archive/GZip/GZipIn.cpp b/CPP/7zip/Archive/GZip/GZipIn.cpp
index 44ed62f6..33b0ac47 100755
--- a/CPP/7zip/Archive/GZip/GZipIn.cpp
+++ b/CPP/7zip/Archive/GZip/GZipIn.cpp
@@ -20,11 +20,8 @@ namespace NGZip {
HRESULT CInArchive::ReadBytes(ISequentialInStream *inStream, void *data, UInt32 size)
{
- UInt32 realProcessedSize;
- RINOK(ReadStream(inStream, data, size, &realProcessedSize));
- m_Position += realProcessedSize;
- if(realProcessedSize != size)
- return S_FALSE;
+ RINOK(ReadStream_FALSE(inStream, data, size));
+ m_Position += size;
return S_OK;
}