Results 1 to 2 of 2

Thread: Stack messes up.

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    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.

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    Re: Stack messes up.

    Quote 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
  •  



Click Here to Expand Forum to Full Width