/windowstate command CTD

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

/windowstate command CTD

Post by wassup » Sat Jun 26, 2004 12:47 pm

This causes a CTD:

Code: Select all

/windowstate MerchantWnd close
Error:

Code: Select all

First-chance exception at 0x03043e00 (MQ2Main.dll) in eqgame.exe: 0xC0000005: Access violation reading location 0x00000014.
Code:

Code: Select all

                    if (text.sz == NULL) /* NULL passed, use special string */
03043DEE  test        eax,eax 
03043DF0  jne         COMMON_INT+1A2h (3043DFAh) 
                        text.sz = __nullstring;
03043DF2  mov         eax,dword ptr [___nullstring (3077C98h)] 
03043DF7  mov         dword ptr [text],eax 
                    p = text.sz;
03043DFA  mov         eax,dword ptr [text] 
03043DFD  jmp         COMMON_INT+1AEh (3043E06h) 
                    while (i-- && *p)
03043DFF  dec         ecx  
[color=cyan]03043E00  cmp         byte ptr [eax],0[/color] 
03043E03  je          COMMON_INT+1B2h (3043E0Ah) 
                        ++p;
03043E05  inc         eax  
                    while (i-- && *p)
03043E06  test        ecx,ecx 
03043E08  jne         COMMON_INT+1A7h (3043DFFh) 
                    textlen = (int)(p - text.sz);    /* length of the string */
03043E0A  sub         eax,dword ptr [text] 
Call Stack:

Code: Select all

[color=cyan]MQ2Main.dll!_output(_iobuf * stream=0x0012add8, const char * format=0x0305742e, char * argptr=0x0012ae0c)  Line 707 + 0x1[/color]
 	MQ2Main.dll!sprintf(char * string=0x0012be18, const char * format=0x03057424, ...)  Line 104 + 0x24	C
 	MQ2Main.dll!WindowState(EQData::_SPAWNINFO * pChar=0x117e4370, char * szLine=0x0012d650)  Line 3558 + 0x1c	C++
 	MQ2Main.dll!HideDoCommand(EQData::_SPAWNINFO * pChar=0x0012add8, char * szLine=0x0305742e, int delayed=0x0012ae0c)  Line 119 + 0x16	C++
 	MQ2Main.dll!Heartbeat()  Line 286	C++
 	MQ2Main.dll!Detour_ProcessGameEvents()  Line 306	C++
 	eqgame.exe!004aeff0() 	
 	6e207275()