Skip to content

Commit

Permalink
3298: Difference 7z archive size result between compression level ult…
Browse files Browse the repository at this point in the history
…ra - normal - max
  • Loading branch information
w17 committed Dec 27, 2016
1 parent 1cff74f commit 0c992f2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
4 changes: 4 additions & 0 deletions plugins/arclite/changelog
@@ -1,3 +1,7 @@
w17 27.12.2016 20:42:33 +0300 - build 244

1. 0003298: Difference 7z archive size result between compression level ultra - normal - max

w17 10.10.2016 17:55:49 +0300 - build 243

1. ���������� ��������� ��������� ������� ������ ��� ������� �������.
Expand Down
2 changes: 1 addition & 1 deletion plugins/arclite/project.ini
Expand Up @@ -2,4 +2,4 @@
MODULE = arclite
VER_MAJOR = 3
VER_MINOR = 0
VER_BUILD = 243
VER_BUILD = 244
15 changes: 14 additions & 1 deletion plugins/arclite/update.cpp
Expand Up @@ -457,7 +457,7 @@ class MultiVolumeUpdateStream: public UpdateStream, public ComBase {
};


class FileReadStream: public IInStream, public ComBase, private File {
class FileReadStream: public IInStream, public IStreamGetSize, public ComBase, private File {
private:
shared_ptr<ArchiveUpdateProgress> progress;

Expand All @@ -469,6 +469,7 @@ class FileReadStream: public IInStream, public ComBase, private File {
UNKNOWN_IMPL_BEGIN
UNKNOWN_IMPL_ITF(ISequentialInStream)
UNKNOWN_IMPL_ITF(IInStream)
UNKNOWN_IMPL_ITF(IStreamGetSize)
UNKNOWN_IMPL_END

STDMETHODIMP Read(void *data, UInt32 size, UInt32 *processedSize) {
Expand All @@ -493,6 +494,18 @@ class FileReadStream: public IInStream, public ComBase, private File {
return S_OK;
COM_ERROR_HANDLER_END
}

STDMETHODIMP GetSize(UInt64 *pSize) {
COM_ERROR_HANDLER_BEGIN
if (!pSize) {
FAIL(E_INVALIDARG);
}
else {
*pSize = size();
return S_OK;
}
COM_ERROR_HANDLER_END
}
};


Expand Down

0 comments on commit 0c992f2

Please sign in to comment.