Bumped version in getVersion() for all formats.

committer: mfx <mfx> 1031846916 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2002-09-12 16:08:36 +00:00
parent 74a2d9486b
commit e225d77146
18 changed files with 21 additions and 18 deletions
+3 -3
View File
@@ -630,7 +630,7 @@ bool Packer::getPackHeader(void *b, int blen)
#endif
}
if (!isValidCompressionMethod(ph.method))
throwCantUnpack("unknown compression method");
throwCantUnpack("unknown compression method (try a newer version of UPX)");
// Some formats might be able to unpack "subformats". Ask them.
if (!testUnpackFormat(ph.format))
@@ -912,12 +912,12 @@ unsigned Packer::unoptimizeReloc32(upx_byte **in, upx_byte *image,
/*************************************************************************
// compression method util [static]
// compression method util
**************************************************************************/
bool Packer::isValidCompressionMethod(int method)
{
return (method >= M_NRV2B_LE32 && method <= M_NRV2D_LE16);
return (method >= M_NRV2B_LE32 && method <= M_NRV2E_LE16);
}