| View previous topic :: View next topic |
| Author |
Message |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Sun Mar 09, 2008 2:39 pm Post subject: |
|
|
| Symbol wrote: | | But, when you push a 4 bytes value, doesn't it read the value in thats address, and doesn't treat it as a value? if it does, this code will throw an exception, then simply push 01 instead of push 00000001. |
No, the function is looking for an integer value, not a pointer to one.
Edit: To show this: try passing a pointer, all it will do is write the address of the value.
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Sun Mar 09, 2008 9:42 pm Post subject: |
|
|
@Symbol: What Flyte said. As I said in my other post, it was my mistake for saying memset over memcpy. memset's 2nd param is just an int value. It repeats the given value for the size you give it. Reason why it wrote 01 4 times.
_________________
- Retired. |
|
| Back to top |
|
 |
Aviram Grandmaster Cheater
Reputation: 0
Joined: 30 Jun 2006 Posts: 633
|
Posted: Thu Mar 13, 2008 6:30 am Post subject: |
|
|
LOL
Symbol cuz of u I used memset and it fucked up my maple and I was like
OMG WHAT IS GOING on?
xDDD
Glad I saw this thread.
|
|
| Back to top |
|
 |
|