View previous topic :: View next topic |
Author |
Message |
Drops Advanced Cheater
Reputation: 0
Joined: 22 Feb 2008 Posts: 62
|
Posted: Thu Mar 19, 2009 12:17 pm Post subject: |
|
|
Isn't pulValue the variable you pass to the function to store the value of the pointer? So if you did that:
Code: | *(ULONG_PTR*)ulTemp = *pulValue; //Not sure about this point though |
all it would be doing is setting whatever is contained in the pointer to the value of pulValue?
|
|
Back to top |
|
 |
Anden100 Grandmaster Cheater
Reputation: 0
Joined: 20 Apr 2007 Posts: 668
|
Posted: Thu Mar 19, 2009 2:11 pm Post subject: |
|
|
Drops wrote: | Isn't pulValue the variable you pass to the function to store the value of the pointer? So if you did that:
Code: | *(ULONG_PTR*)ulTemp = *pulValue; //Not sure about this point though |
all it would be doing is setting whatever is contained in the pointer to the value of pulValue? |
lol..., what about just giving pulValue the number you wish to write?
|
|
Back to top |
|
 |
Drops Advanced Cheater
Reputation: 0
Joined: 22 Feb 2008 Posts: 62
|
Posted: Thu Mar 19, 2009 6:29 pm Post subject: |
|
|
Anden100 wrote: | Drops wrote: | Isn't pulValue the variable you pass to the function to store the value of the pointer? So if you did that:
Code: | *(ULONG_PTR*)ulTemp = *pulValue; //Not sure about this point though |
all it would be doing is setting whatever is contained in the pointer to the value of pulValue? |
lol..., what about just giving pulValue the number you wish to write? |
Oh sorry, I kept flipping back from his post to yours, missed the fact you modded it for a write function.
|
|
Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Thu Mar 19, 2009 8:36 pm Post subject: |
|
|
Nope, it's still fucked up.
Code: | *(ULONG_PTR*)ulTemp = *pulValue;
*ulTemp = ulValue; |
Neither of these lines will compile.
ULONG_PTR isn't a pointer to a ULONG, if you had checked to see what ULONG_PTR is even defined as you would know that.
Code: | typedef _W64 unsigned long ULONG_PTR, *PULONG_PTR; |
As a result you will get an error, which if i remember right, is illegal indirection.
_________________
|
|
Back to top |
|
 |
|