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:
parent
a4b8dc18c1
commit
6602f30112
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user