don't return 0 from CLZMA::Comrpess when finished, return 1
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4857 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
c06d106133
commit
ec931af459
2 changed files with 3 additions and 1 deletions
|
@ -263,7 +263,7 @@ int CLZMA::CompressReal()
|
||||||
break;
|
break;
|
||||||
if (finished)
|
if (finished)
|
||||||
{
|
{
|
||||||
res = C_OK;
|
res = C_FINISHED;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
#define __COMPRESSOR_H__
|
#define __COMPRESSOR_H__
|
||||||
|
|
||||||
#define C_OK 0
|
#define C_OK 0
|
||||||
|
#define C_FINISHED 1
|
||||||
|
|
||||||
#define C_FINISH true
|
#define C_FINISH true
|
||||||
|
|
||||||
class ICompressor {
|
class ICompressor {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue