Okay, so in WoW, there's a structure for each packet. It's called CDataStore. I'm sure someone in here has heard of it... Anyway, I need help with logging. I keep getting an access violation. It says that 0x0000000 is trying to reference 0x000000, which makes zero sense. Here's the code i'm using. dbglog is just a ofstream. packet is the instance of the CDataStore structure.
Code:
__asm pushad;
dbglog << packet.m_buffer << std::endl;
__asm popad;
oSendPacket(packet);
BTW: it's inside a detour, hence the stack/flags saving.
Olly apparently doesn't like my DLL so I can't shove a int 3 in there to see why there's a null pointer either.