hmm, so weird when I call GetActivePlayer within my DLL the function returns something different than when WoW calls it. I think it has something to do with Threads because the first line of GetActivePlayer accesses FS-Segment. Thats really stupid... WoW is really a bitch to me today. Anyone can help?
And here is the asm of GetActivePlayer:
Code:
MOV ECX, DWORD PTR FS:[2C]
MOV EAX,DWORD PTR DS:[1B4C170]
MOV EDX,DWORD PTR DS:[ECX+EAX*4]
MOV ECX,DWORD PTR DS:[EDX+8]
TEST ECX,ECX
JNZ SHORT Wow.011A523E
XOR EAX,EAX
XOR EDX,EDX
RETN
MOV EAX,DWORD PTR DS:[ECX+B8]
MOV EDX,DWORD PTR DS:[ECX+BC]
RETN
I also tried copying the function and just calling my own implementation, but same result.