mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-15 04:11:46 -06:00
4.58 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
bd1fa36322
commit
3901bf0ab8
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,11 +12,7 @@ namespace NGZip {
|
||||
|
||||
HRESULT COutArchive::WriteBytes(const void *buffer, UInt32 size)
|
||||
{
|
||||
UInt32 processedSize;
|
||||
RINOK(WriteStream(m_Stream, buffer, size, &processedSize));
|
||||
if(processedSize != size)
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
return WriteStream(m_Stream, buffer, size);
|
||||
}
|
||||
|
||||
HRESULT COutArchive::WriteByte(Byte value)
|
||||
|
||||
Reference in New Issue
Block a user