mirror of https://github.com/PCSX2/pcsx2.git
DEV9: Fix IP_PayloadPtr::WriteBytes()
This commit is contained in:
parent
5ea46ac076
commit
b6b775e44e
|
@ -96,10 +96,10 @@ namespace PacketReader::IP
|
|||
{
|
||||
//If buffer & data point to the same location
|
||||
//Then no copy is needed
|
||||
if (data == buffer)
|
||||
if (data == &buffer[*offset])
|
||||
return;
|
||||
|
||||
memcpy(buffer, data, length);
|
||||
memcpy(&buffer[*offset], data, length);
|
||||
*offset += length;
|
||||
}
|
||||
virtual IP_Payload* Clone() const
|
||||
|
|
Loading…
Reference in New Issue