fixed a bunch of bugs that caused lzma and bzip2 not to function without solid compression
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3362 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
e9919e7f89
commit
dd8a4388ac
6 changed files with 42 additions and 14 deletions
|
@ -21,7 +21,7 @@ class CBzip2 : public ICompressor {
|
|||
|
||||
int Compress(BOOL finish) {
|
||||
// act like zlib when it comes to stream ending
|
||||
if (last_ret == BZ_STREAM_END)
|
||||
if (last_ret == BZ_STREAM_END && finish)
|
||||
return BZ_STREAM_END;
|
||||
last_ret = BZ2_bzCompress(stream, finish?BZ_FINISH:0);
|
||||
return last_ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue