From ec931af459cfd3a1bf92cf87de2c1f1ad2900d09 Mon Sep 17 00:00:00 2001 From: kichik Date: Mon, 22 Jan 2007 20:01:24 +0000 Subject: [PATCH] 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 --- Source/clzma.cpp | 2 +- Source/compressor.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/clzma.cpp b/Source/clzma.cpp index 118fcec5..27140551 100644 --- a/Source/clzma.cpp +++ b/Source/clzma.cpp @@ -263,7 +263,7 @@ int CLZMA::CompressReal() break; if (finished) { - res = C_OK; + res = C_FINISHED; break; } } diff --git a/Source/compressor.h b/Source/compressor.h index abc1d6af..49524a00 100644 --- a/Source/compressor.h +++ b/Source/compressor.h @@ -18,6 +18,8 @@ #define __COMPRESSOR_H__ #define C_OK 0 +#define C_FINISHED 1 + #define C_FINISH true class ICompressor {