Skip to content

Commit 817c25a

Browse files
committed
fixed:unread memset is incorrent
1 parent 38e036b commit 817c25a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

XEngine_Source/MQCore_ProtocolModule/ProtocolModule_Packet/ProtocolModule_Packet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ XHANDLE CProtocolModule_Packet::ProtocolModule_Packet_UNReadCreate(XENGINE_PROTO
458458
Protocol_dwErrorCode = ERROR_MQ_MODULE_PROTOCOL_MALLOC;
459459
return FALSE;
460460
}
461-
memset(&pSt_UNRead->st_ProtocolHdr, '\0', sizeof(PROTOCOL_PACKETUNREAD));
461+
memset(&pSt_UNRead->st_ProtocolHdr, '\0', sizeof(XENGINE_PROTOCOLHDR));
462462

463463
pSt_UNRead->nType = enPayType;
464464
if (pSt_UNRead->nType == ENUM_XENGINE_PROTOCOLHDR_PAYLOAD_TYPE_BIN)

0 commit comments

Comments
 (0)