Wrong Calling Convention! (Run-Time Check Failure #0)

01/10/2010 11:34 xUsername#1
[Close]

Greetings,
hijax
01/11/2010 02:00 julmuri#2
Quote:
Originally Posted by hijax View Post
Code:
//
// ...

.text:0040AA37                 mov     ecx, offset unk_D97D38
.text:0040AA3C                 call    sub_42A790
That disassembly suggests that the function is member function.
See [Only registered and activated users can see links. Click Here To Register...] for reference.
To clear my suspection out, the code is moving pointer to ecx,
commonly used for 'this' pointer.

Even with this knowledge you can not use windows detours,
but it will give you a sense of direction.

Hope this helps.
01/11/2010 02:43 bloodx#3
Hatte den gleichen Fehler vorhin auch. Du übergibst eine Funktion falsch. Oder nen Parameter(bin mir nicht sicher müsste bei mir nachgucken)
01/11/2010 09:22 xUsername#4
Die erste Antwort hat Recht.

Die Funktion hat 3 Parameter, ist eine Klassen-Funktion und nutzt eine "public variable" (ECX). Ich hab' schon so oft irgendwelche Funktionen detoured. Aber Klassen-Funktionen? Kein Schimmer davon.
01/11/2010 09:24 Cholik#5
#closed