[Kernel::WaitSyncN] Panic on handleCount == 0

This commit is contained in:
wheremyfoodat 2023-04-30 01:02:35 +03:00
parent 4ed1cf234b
commit 1d06a31113

View file

@ -180,7 +180,7 @@ void Kernel::waitSynchronizationN() {
logSVC("WaitSynchronizationN (handle pointer: %08X, count: %d, timeout = %lld)\n", handles, handleCount, ns);
if (handleCount < 0)
if (handleCount <= 0)
Helpers::panic("WaitSyncN: Invalid handle count");
using WaitObject = std::pair<Handle, KernelObject*>;