Page 1 of 1

Question about pointer offsets

Posted: Sun Jan 13, 2013 3:47 am
by rock5
I noticed something that I don't understand. Maybe it's a bug.

If you have 1 offset for a pointer your write it like this

Code: Select all

memoryReadXXXPtr(proc, address, offset)
if you have more offsets you write it like this

Code: Select all

memoryReadXXXPtr(proc, address, {offset1,offset2})
I would expect that if I only have 1 offset this should still work

Code: Select all

memoryReadXXXPtr(proc, address, {offset})
But it doesn't. I get a value that doesn't seem to have anything to do with the values used.

Is this a bug?

Re: Question about pointer offsets

Posted: Sun Jan 13, 2013 12:16 pm
by Administrator
That does indeed seem to be a bug. I'll look into it.

Re: Question about pointer offsets

Posted: Sun Jan 13, 2013 1:44 pm
by Administrator
I think I fixed it. It was a pretty stupid mistake, but one that was easy to make (if that makes any sense). I've attached a copy for you to test.

Re: Question about pointer offsets

Posted: Sun Jan 13, 2013 2:16 pm
by rock5
Yep, passed initial tests.