TAP_Win32: Use vector assign instead of resize + memcpy

This commit is contained in:
Lioncash 2016-07-19 19:29:49 -04:00
parent e32af8e0fe
commit 0483c88f1e
1 changed files with 1 additions and 2 deletions

View File

@ -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.