mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 03:54:57 +00:00
Merge pull request #4034 from lioncash/assign
TAP_Win32: Use vector assign instead of resize + memcpy
This commit is contained in:
commit
36716e7e3c
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue