Changed the parameter list of Packer::patchFilter32(), for consisitency

with the other patch and filter methods.

committer: mfx <mfx> 976879665 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2000-12-15 11:27:45 +00:00
parent 0b93d6c1f5
commit cb7b0e93cf
7 changed files with 14 additions and 14 deletions
+7 -7
View File
@@ -1301,15 +1301,15 @@ void Packer::scanFilters(Filter *ft, const upx_byte *buf, unsigned buf_len,
}
bool Packer::patchFilter32(const Filter &ft, void *loader, unsigned lsize)
bool Packer::patchFilter32(void *loader, int lsize, const Filter *ft)
{
if (ft.id == 0)
if (ft->id == 0)
return false;
assert(ft.calls > 0);
if (ft.id > 0x20)
patch_le16(loader, lsize, "??", '?' + (ft.cto << 8));
patch_le32(loader, lsize, "TEXL", (ft.id & 0xf) % 3 == 0 ? ft.calls :
ft.lastcall - ft.calls * 4);
assert(ft->calls > 0);
if (ft->id > 0x20)
patch_le16(loader, lsize, "??", '?' + (ft->cto << 8));
patch_le32(loader, lsize, "TEXL", (ft->id & 0xf) % 3 == 0 ? ft->calls :
ft->lastcall - ft->calls * 4);
return true;
}