4.27 beta

This commit is contained in:
Igor Pavlov
2005-09-21 00:00:00 +00:00
committed by Kornel Lesiński
parent 31e7b924e8
commit d66cf2fcf3
393 changed files with 17345 additions and 4743 deletions

View File

@@ -11,8 +11,7 @@ void CLimitedSequentialInStream::Init(ISequentialInStream *stream, UInt64 stream
_size = streamSize;
}
STDMETHODIMP CLimitedSequentialInStream::Read(void *data,
UInt32 size, UInt32 *processedSize)
STDMETHODIMP CLimitedSequentialInStream::Read(void *data, UInt32 size, UInt32 *processedSize)
{
UInt32 processedSizeReal;
UInt32 sizeToRead = UInt32(MyMin(_size, UInt64(size)));
@@ -22,15 +21,4 @@ STDMETHODIMP CLimitedSequentialInStream::Read(void *data,
*processedSize = processedSizeReal;
return result;
}
STDMETHODIMP CLimitedSequentialInStream::ReadPart(void *data, UInt32 size, UInt32 *processedSize)
{
UInt32 processedSizeReal;
UInt32 sizeToRead = UInt32(MyMin(_size, UInt64(size)));
HRESULT result = _stream->ReadPart(data, sizeToRead, &processedSizeReal);
_size -= processedSizeReal;
if(processedSize != NULL)
*processedSize = processedSizeReal;
return result;
}