|
-
Aug 20th, 2007, 02:22 PM
#1
Thread Starter
Frenzied Member
Stack messes up.
Okay well I am writing a dll that redirects a programs function into my dll so I can edit it. Now what is happening is I PushAD at the start to preserve the variables in the program. Now it popads fine but what happens if my dll apparently shifts the stack. I was wondering what things would do this?
it pops fine with all the last variables but because it is shifted i got about 10 variables in stack before the original stuff.
-
Aug 20th, 2007, 05:32 PM
#2
Thread Starter
Frenzied Member
Re: Stack messes up.
 Originally Posted by high6
Okay well I am writing a dll that redirects a programs function into my dll so I can edit it. Now what is happening is I PushAD at the start to preserve the variables in the program. Now it popads fine but what happens if my dll apparently shifts the stack. I was wondering what things would do this?
it pops fine with all the last variables but because it is shifted i got about 10 variables in stack before the original stuff.
Apparently any function that returns a variable messes with the stack(reason why when a function is called it add like 20 lines of CCCCCCC to the stack. Anyone know how to disable editing the stack on return for built in functions?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|