The jumps are hard coded for 32 bit.
It would be better if the code took into account the different size of a pointer, that way compilation for 32bit and 64 bit should be able to use the same code.
e.g.
Instead of:
It would be better if the code took into account the different size of a pointer, that way compilation for 32bit and 64 bit should be able to use the same code.
e.g.
Instead of:
Code: Select all
You'd have:
extern "C" __declspec(naked) void __stdcall __E__0__()
{
__asm
{
jmp p[0 * 4];
}
}
Code: Select all
extern "C" __declspec(naked) void __stdcall __E__0__()
{
__asm
{
jmp p[0 * sizeof(ULONG_PTR)];
}
}