mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 23:59:27 +01:00
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…
x
Reference in New Issue
Block a user