diff --git a/rpcs3/Emu/CPU/CPUThread.h b/rpcs3/Emu/CPU/CPUThread.h index 25b3a6a992..600c88ebd6 100644 --- a/rpcs3/Emu/CPU/CPUThread.h +++ b/rpcs3/Emu/CPU/CPUThread.h @@ -144,7 +144,7 @@ public: { suspend_work work{&op, nullptr, [](void* func, void*) { - (*static_cast(func))(); + std::invoke(*static_cast(func)); }}; work.push(_this); @@ -156,7 +156,7 @@ public: suspend_work work{&op, &result, [](void* func, void* res_buf) { - *static_cast*>(res_buf) = (*static_cast(func))(); + *static_cast*>(res_buf) = std::invoke(*static_cast(func)); }}; work.push(_this);