Posted: Sat Oct 30, 2021 8:37 pm Post subject: Stop Delphi from clearing up stack
Hi,
I am taking over various functions with hooks and I notice delphi uses "ret 0014" etc which wrecks the stack - as when it returns the game I am hooking uses add esp,14
In this case there are multiple calls and it's complicated. I can't just nop add esp,14
I can use Register directive but this isn't going to work when function is passing loads of parameters and in fact different registers would be passed anyway.
Is there a way to instruct delphi compiler not to do this and to use ordinary ret?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum