BUG in _CXSTR ... someplace
Posted: Fri Oct 31, 2003 10:51 pm
When trying to read the data from the Text member, you only get 1 character. To see an example of this, rename your MQChat window. It will only save 1 character to the INI file.
If you change your INI to have a full name, it will load the whole thing.
I have no idea how to get the struct to be dynamic based on MaxLength for the Text field ... but I'm pretty sure that is where the problem is.
If you change your INI to have a full name, it will load the whole thing.
I have no idea how to get the struct to be dynamic based on MaxLength for the Text field ... but I'm pretty sure that is where the problem is.
Code: Select all
//5-15-2003 eqmule
typedef struct _CXSTR {
/*0x00*/ DWORD Font; // maybe, dont know. 04 = Window 01 = button
/*0x04*/ DWORD MaxLength;
/*0x08*/ DWORD Length;
/*0x0c*/ BOOL Encoding; // 0: ASCII, 1:Unicode
/*0x10*/ PCRITICAL_SECTION pLock;
[color=cyan]/*0x14*/ CHAR Text[1]; // Stub, can be anywhere from Length to MaxLength (which is how much is malloc'd to this CXStr) [/color]
} CXSTR, *PCXSTR;