From 0483c88f1e692c964719c9ff4b48ef483eec8047 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 19 Jul 2016 19:29:49 -0400 Subject: [PATCH] TAP_Win32: Use vector assign instead of resize + memcpy --- Source/Core/Core/HW/BBA-TAP/TAP_Win32.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Core/Core/HW/BBA-TAP/TAP_Win32.cpp b/Source/Core/Core/HW/BBA-TAP/TAP_Win32.cpp index c817d370e6..9148cbb252 100644 --- a/Source/Core/Core/HW/BBA-TAP/TAP_Win32.cpp +++ b/Source/Core/Core/HW/BBA-TAP/TAP_Win32.cpp @@ -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.