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:
+7
-7
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user