修复bug

main
Matthew 2 years ago
parent e315401580
commit 76bf9006ab

File diff suppressed because it is too large Load Diff

@ -2595,6 +2595,7 @@ int AddNodeEx(int commid, char *buf, int len)
if (!SioParam[commid].WriteData) //empty before insert
{
SioParam[commid].WriteData = (struct WR_DATA*)HEAP_MALLOC(iMallocSize);
SioParam[commid].WriteData->MsgData = (u_char*)SioParam[commid].WriteData + sizeof(struct WR_DATA);
if (!SioParam[commid].WriteData)
{
// wen 2004.12.03
@ -2630,6 +2631,7 @@ int AddNodeEx(int commid, char *buf, int len)
};
wdata->Next = (struct WR_DATA*)HEAP_MALLOC(iMallocSize);
wdata->Next->MsgData = (u_char*)wdata->Next + sizeof(struct WR_DATA);
if (!wdata->Next)
{
// wen 2004.12.03

Loading…
Cancel
Save