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.
|
// Copy to write buffer.
|
||||||
mWriteBuffer.resize(size);
|
mWriteBuffer.assign(frame, frame + size);
|
||||||
memcpy(mWriteBuffer.data(), frame, size);
|
|
||||||
mWritePending = true;
|
mWritePending = true;
|
||||||
|
|
||||||
// Queue async write.
|
// Queue async write.
|
||||||
|
|
Loading…
Reference in New Issue