Thanks,
but this line does not work
*(char*)address = 0xE9; // jmp
*(void **)((char *)address + 1) = (void*)(((char*)NewFun()) - ((char *)address + 5));
*(char*)address = 0xE9; // jmp
*(void **)((char *)address + 1) = (void*)(((char*)NewFun()) - ((char *)address + 5));
To copy to clipboard, switch view to plain text mode
error I get:
void value not ingored as it ought to be
EDIT:
btw, this is the NewFun
void Hook::NewFun()
{
__asm__ (
);
}
void Hook::NewFun()
{
__asm__ (
);
}
To copy to clipboard, switch view to plain text mode
Bookmarks