diff --git a/src/core/tls.h b/src/core/tls.h index a7b1d6838..79388343c 100644 --- a/src/core/tls.h +++ b/src/core/tls.h @@ -59,9 +59,9 @@ void ClearStack() { template ReturnType ExecuteGuest(PS4_SYSV_ABI ReturnType (*func)(FuncArgs...), CallArgs&&... args) { - // clear stack to avoid trash from EnsureThreadInitialized (skip on fiber stacks) + // clear stack to avoid trash from EnsureThreadInitialized auto* tcb = GetTcbBase(); - if (tcb == nullptr || tcb->tcb_fiber == nullptr) { + if (tcb == nullptr) { ClearStack<12_KB>(); } return func(std::forward(args)...);