Added two checks for throwCantPackExact.

This commit is contained in:
Markus F.X.J. Oberhumer
2006-11-21 18:01:16 +01:00
parent 16163bf20b
commit 5d71e69941
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -871,6 +871,9 @@ upx_byte *Packer::optimizeReloc32(upx_byte *in, unsigned relocnum,
upx_byte *out, upx_byte *image,
int bswap, int *big)
{
if (opt->exact)
throwCantPackExact();
*big = 0;
if (relocnum == 0)
return out;