Fix Regression #932

This commit is contained in:
Adam Jones 2024-09-18 17:17:53 +01:00
parent 4a0bd876ff
commit 6d7e0c71a0

View File

@ -32,6 +32,10 @@ public:
return ORBIS_KERNEL_ERROR_EBUSY; return ORBIS_KERNEL_ERROR_EBUSY;
} }
if (timeout && *timeout == 0) {
return SCE_KERNEL_ERROR_ETIMEDOUT;
}
// Create waiting thread object and add it into the list of waiters. // Create waiting thread object and add it into the list of waiters.
WaitingThread waiter{need_count, is_fifo}; WaitingThread waiter{need_count, is_fifo};
const auto it = AddWaiter(&waiter); const auto it = AddWaiter(&waiter);