diff options
Diffstat (limited to '7zip/Archive/BZip2/BZip2Handler.cpp')
-rwxr-xr-x | 7zip/Archive/BZip2/BZip2Handler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/7zip/Archive/BZip2/BZip2Handler.cpp b/7zip/Archive/BZip2/BZip2Handler.cpp index 97ea155c..88e5da1f 100755 --- a/7zip/Archive/BZip2/BZip2Handler.cpp +++ b/7zip/Archive/BZip2/BZip2Handler.cpp @@ -7,7 +7,7 @@ #include "Common/Defs.h" #include "../../Common/ProgressUtils.h" -// #include "Interface/EnumStatProp.h" +#include "../../Common/StreamUtils.h" #include "Windows/PropVariant.h" #include "Windows/Defs.h" @@ -111,7 +111,7 @@ STDMETHODIMP CHandler::Open(IInStream *stream, const int kSignatureSize = 3; Byte buffer[kSignatureSize]; UInt32 processedSize; - RINOK(stream->Read(buffer, kSignatureSize, &processedSize)); + RINOK(ReadStream(stream, buffer, kSignatureSize, &processedSize)); if (processedSize != kSignatureSize) return S_FALSE; if (buffer[0] != 'B' || buffer[1] != 'Z' || buffer[2] != 'h') @@ -221,7 +221,7 @@ STDMETHODIMP CHandler::Extract(const UInt32* indices, UInt32 numItems, const int kSignatureSize = 3; Byte buffer[kSignatureSize]; UInt32 processedSize; - RINOK(_stream->Read(buffer, kSignatureSize, &processedSize)); + RINOK(ReadStream(_stream, buffer, kSignatureSize, &processedSize)); if (processedSize < kSignatureSize) { if (firstItem) |