View Single Post
  #1  
Old 08-02-2003, 16:50
ArC ArC is offline
VIP
 
Join Date: Jan 2003
Location: NTOSKRNL.EXE
Posts: 172
Rept. Given: 0
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 5
Thanks Rcvd at 17 Times in 12 Posts
ArC Reputation: 1
Question Problem with Return Address

I got an application which calls a MFC function.
That MFC function calls another MFC function.
Now my problem:
As you know, when a call is executed, the return
address is pushed on the stack.
But not in this case:
When that MFC function calls the other MFC function,
0 is pushed on the stack as return address instead of
the real return address.
The result of this is that when that call
returns, the app crashes.

So how can this happen?

Notice:
That application is protected.
In the protected version of the app
that problem does not seem to occur.
However, I've unpacked that app by hand
and now I got this problem.

Thx
Reply With Quote