From 6602f3011290b39bdad851c9b2bfe9ec1d6ab6cc Mon Sep 17 00:00:00 2001 From: John Reiser Date: Thu, 29 Jun 2006 12:07:01 -0700 Subject: [PATCH] true==checkCompressionRatio() means success --- src/packer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packer.cpp b/src/packer.cpp index 5d0f6424..794ef0a3 100644 --- a/src/packer.cpp +++ b/src/packer.cpp @@ -228,7 +228,7 @@ bool Packer::compress(upx_bytep in, upx_bytep out, } //printf("\nPacker::compress: %d/%d: %7d -> %7d\n", ph.method, ph.level, ph.u_len, ph.c_len); - if (checkCompressionRatio(ph.u_len, ph.c_len)) + if (!checkCompressionRatio(ph.u_len, ph.c_len)) return false; // return in any case if not compressible if (ph.c_len >= ph.u_len)