1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

true==checkCompressionRatio() means success

This commit is contained in:
John Reiser 2006-06-29 12:07:01 -07:00
parent a4b8dc18c1
commit 6602f30112

View File

@ -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)