diff --git a/common/Semaphore.cpp b/common/Semaphore.cpp index 42b3247843..99453ad201 100644 --- a/common/Semaphore.cpp +++ b/common/Semaphore.cpp @@ -167,7 +167,7 @@ void Threading::KernelSemaphore::WaitWithYield() { #ifdef _WIN32 u64 millis = def_yieldgui_interval.GetMilliseconds().GetValue(); - while (pthreadCancelableTimedWait(m_sema, millis) == WAIT_TIMEOUT) + while (pthreadCancelableTimedWait(m_sema, millis) == ETIMEDOUT) YieldToMain(); #else while (true)