hooking the Function at 0x406A30 in ps_login.exe.
While the hook works totally fine when my function is
empty ->
Code:
int __fastcall TryLogin( DWORD ecx, DWORD edx, char* username,char* password, int unkw, int unkw2, char* ip ) { return oLogin( ecx, edx, username, password, unkw, unkw2, ip ); }
crash inside the hooked function or after returning, it crashes
somewhat later when it wants to return to the code
that calls the function at 406A30. The Reason is it returns
to the wrong address. So if someone could help with this one
it would be awesome =)
ps:
The original Function is also called with the right arguments etc :3
edit:
posted in the wrong section but already reported that
e:
The cause is obviously a stack problem and i could probly fix
that by manipulating the add esp before returning but
as far as i know that normally shouldnt be a problem when the hook
is fine :d