0

This is for an injected .DLL.

Given the following code:

if ( *(volatile unsigned long*)(0x13E81F4+(4 * *(volatile unsigned long*)0x13E81B0)) < 2)
{
    //...
}

Is there a way to write that in a more readable fashion, eg:

if (array[i] < 2)
{
    //...
}

(while still using the desired memory addresses)?

1 Answer 1

2
volatile unsigned long *p = (volatile unsigned long *)0x13E81F4;
volatile unsigned long *q = (volatile unsigned long *)0x13E81B0;

if ( p[4 * q[0]] < 2 )
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.