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

Reverted my last patch and removed updateCallbackSizes() again.

Should use a subclass of UiPacker for special display.

committer: mfx <mfx> 977048325 +0000
This commit is contained in:
Markus F.X.J. Oberhumer 2000-12-17 10:18:45 +00:00
parent 5862bd3de8
commit c6c96d9cad
2 changed files with 0 additions and 5 deletions

View File

@ -231,9 +231,6 @@ protected:
virtual upx_byte *optimizeReloc32(upx_byte *in,unsigned relocnum,upx_byte *out,upx_byte *image,int bs,int *big);
virtual unsigned unoptimizeReloc32(upx_byte **in,upx_byte *image,MemBuffer *out,int bs);
// UI util
virtual void updateCallbackSizes(unsigned *, unsigned *) const { }
protected:
InputFile *fi;

View File

@ -356,8 +356,6 @@ void UiPacker::doCallback(unsigned isize, unsigned osize)
if (s->pass < 0) // no callback wanted
return;
p->updateCallbackSizes(&isize, &osize);
if (s->u_len == 0 || isize > s->u_len)
return;
// check if we should update the display