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)