From bf4b8d246aee40d0adeb74e9ac9312b2bb55688d Mon Sep 17 00:00:00 2001 From: Lioncache Date: Wed, 3 Sep 2025 10:58:56 -0400 Subject: [PATCH] Threads: Simplify copying in SetInternalPointers We can just use assignment here, which lets us also remove since this is the only usage of memcpy. --- FEXCore/Source/Utils/Threads.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/FEXCore/Source/Utils/Threads.cpp b/FEXCore/Source/Utils/Threads.cpp index 04b0bd6b9..dee06d4ef 100644 --- a/FEXCore/Source/Utils/Threads.cpp +++ b/FEXCore/Source/Utils/Threads.cpp @@ -3,7 +3,6 @@ #include #include -#include #include #include #ifndef _WIN32 @@ -34,7 +33,7 @@ void FEXCore::Threads::Thread::CleanupAfterFork() { } void FEXCore::Threads::Thread::SetInternalPointers(const Pointers& _Ptrs) { - memcpy(&Ptrs, &_Ptrs, sizeof(FEXCore::Threads::Pointers)); + Ptrs = _Ptrs; } uint64_t SetSignalMask(uint64_t Mask) {