Debug output spew:
[MQ2 (EqMac]CChatHook::Detour(You are out of food and drink.)
[MQ2 (EqMac]CCommandHook::Detour((null))
>>>First-chance exception at 0x50796ED7 (MQ2Main.dll) in eqgame.exe: 0xC0000005: Access violation reading location 0x00000000.
Call stack:
> MQ2Main.dll!CCommandHook::Detour(EQData::_SPAWNINFO * pChar, char * szFullLine) Line 156 C++
eqgame.dll!50749842() Unknown
[Frames below may be incorrect and/or missing, no symbols loaded for eqgame.dll]
dinput8.dll!6bfbdeb2() Unknown
dinput8.dll!6bfbd9b5() Unknown
dinput8.dll!6bfbda1b() Unknown
eqw.dll!100059df() Unknown
eqgame.exe!0055b595() Unknown
eqgame.exe!00575cc0() Unknown
eqgame.exe!00577e74() Unknown
kernel32.dll!75ce2c87() Unknown
eqgame.exe!005a32c3() Unknown
Dissasembly:
PSUB pSubLoop = pSubs;
50796ECC mov edi,dword ptr ds:[5084B98Ch]
50796ED2 xor ebx,ebx
50796ED4 mov dword ptr [ebp-28h],eax
if (szFullLine[0]!=0) {
>>>50796ED7 cmp byte ptr [esi],bl
50796ED9 je CCommandHook::Detour+442h (50797242h)
strcpy(szFullCommand,szFullLine);
50796EDF lea edx,[szFullCommand]
50796EE5 mov ecx,esi
50796EE7 sub edx,esi
50796EE9 lea esp,[esp]
50796EF0 mov al,byte ptr [ecx]
50796EF2 mov byte ptr [edx+ecx],al
50796EF5 lea ecx,[ecx+1]
50796EF8 test al,al
50796EFA jne CCommandHook::Detour+0F0h (50796EF0h)
Code where crash occured: @ MQ2CommandAPI.cpp
unsigned int k=0;
bool OneCharacterSub = false;
PALIAS pLoop = pAliases;
PSUB pSubLoop = pSubs;
>>> if (szFullLine[0]!=0) {
strcpy(szFullCommand,szFullLine);
GetArg(szCommand,szFullCommand,1);
szSubFullCommand = szFullCommand;
for (unsigned int i=0; i < sizeof(szFullCommand); i++ )
{
if (szFullCommand[i] == '%')