mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-01-31 01:15:24 +01:00
DEV9: Fix IP_PayloadPtr::WriteBytes()
This commit is contained in:
committed by
lightningterror
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
|
||||
|
||||
Reference in New Issue
Block a user