Quote:
Originally Posted by zremchs21
Can someone tell me what's wrong?
*(DWORD*)(*(DWORD*)(*(DWORD*)(*(DWORD*)ADDR_BASE + 0x20) + 0x118) + 0x4a1c)=1;
I'm trying to add multiple-level pointer and change the value to 1.
|
Try to define first your offsets:
#define ADDR_OFF1 0x20
#define ADDR_OFF2 0x118
#define ADDR_OFF3 0x4a1c
*(DWORD*)(*(DWORD*)ADDR_BASE + ADDR_OFF1) = 1;
*(DWORD*)(*(DWORD*)ADDR_BASE + ADDR_OFF2) = 1;
*(DWORD*)(*(DWORD*)ADDR_BASE + ADDR_OFF3) = 1;
I saw this code only in the net.. Hope it helps you.