TAP_Win32: Use vector assign instead of resize + memcpy
This commit is contained in:
parent
e32af8e0fe
commit
0483c88f1e
|
@ -321,8 +321,7 @@ bool CEXIETHERNET::SendFrame(const u8* frame, u32 size)
|
|||
}
|
||||
|
||||
// Copy to write buffer.
|
||||
mWriteBuffer.resize(size);
|
||||
memcpy(mWriteBuffer.data(), frame, size);
|
||||
mWriteBuffer.assign(frame, frame + size);
|
||||
mWritePending = true;
|
||||
|
||||
// Queue async write.
|
||||
|
|
Loading…
Reference in New Issue